brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.2 KiB · d239224 Raw
88 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+cpa < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefixes=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+cpa < %s \6// RUN:        | llvm-objdump -d --mattr=+cpa - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+cpa < %s \8// RUN:        | llvm-objdump -d --mattr=-cpa - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+cpa < %s \11// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN:        | llvm-mc -triple=aarch64 -mattr=+cpa -disassemble -show-encoding \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15 16 17addpt x0, x1, x218// CHECK-INST: addpt x0, x1, x219// CHECK-ENCODING: encoding: [0x20,0x20,0x02,0x9a]20// CHECK-ERROR: error: instruction requires: cpa21// CHECK-UNKNOWN:  9a022020 <unknown>22 23addpt sp, sp, x224// CHECK-INST: addpt sp, sp, x225// CHECK-ENCODING: encoding: [0xff,0x23,0x02,0x9a]26// CHECK-ERROR: error: instruction requires: cpa27// CHECK-UNKNOWN:  9a0223ff <unknown>28 29addpt x0, x1, x2, lsl #030// CHECK-INST: addpt x0, x1, x231// CHECK-ENCODING: encoding: [0x20,0x20,0x02,0x9a]32// CHECK-ERROR: error: instruction requires: cpa33// CHECK-UNKNOWN:  9a022020 <unknown>34 35addpt x0, x1, x2, lsl #736// CHECK-INST: addpt x0, x1, x2, lsl #737// CHECK-ENCODING: encoding: [0x20,0x3c,0x02,0x9a]38// CHECK-ERROR: error: instruction requires: cpa39// CHECK-UNKNOWN:  9a023c20 <unknown>40 41addpt sp, sp, x2, lsl #742// CHECK-INST: addpt sp, sp, x2, lsl #743// CHECK-ENCODING: encoding: [0xff,0x3f,0x02,0x9a]44// CHECK-ERROR: error: instruction requires: cpa45// CHECK-UNKNOWN:  9a023fff <unknown>46 47subpt x0, x1, x248// CHECK-INST: subpt x0, x1, x249// CHECK-ENCODING: encoding: [0x20,0x20,0x02,0xda]50// CHECK-ERROR: error: instruction requires: cpa51// CHECK-UNKNOWN:  da022020 <unknown>52 53subpt sp, sp, x254// CHECK-INST: subpt sp, sp, x255// CHECK-ENCODING: encoding: [0xff,0x23,0x02,0xda]56// CHECK-ERROR: error: instruction requires: cpa57// CHECK-UNKNOWN:  da0223ff <unknown>58 59subpt x0, x1, x2, lsl #060// CHECK-INST: subpt x0, x1, x261// CHECK-ENCODING: encoding: [0x20,0x20,0x02,0xda]62// CHECK-ERROR: error: instruction requires: cpa63// CHECK-UNKNOWN:  da022020 <unknown>64 65subpt x0, x1, x2, lsl #766// CHECK-INST: subpt x0, x1, x2, lsl #767// CHECK-ENCODING: encoding: [0x20,0x3c,0x02,0xda]68// CHECK-ERROR: error: instruction requires: cpa69// CHECK-UNKNOWN:  da023c20 <unknown>70 71subpt sp, sp, x2, lsl #772// CHECK-INST: subpt sp, sp, x2, lsl #773// CHECK-ENCODING: encoding: [0xff,0x3f,0x02,0xda]74// CHECK-ERROR: error: instruction requires: cpa75// CHECK-UNKNOWN:  da023fff <unknown>76 77maddpt x0, x1, x2, x378// CHECK-INST: maddpt x0, x1, x2, x379// CHECK-ENCODING: encoding: [0x20,0x0c,0x62,0x9b]80// CHECK-ERROR: error: instruction requires: cpa81// CHECK-UNKNOWN:  9b620c20 <unknown>82 83msubpt x0, x1, x2, x384// CHECK-INST: msubpt x0, x1, x2, x385// CHECK-ENCODING: encoding: [0x20,0x8c,0x62,0x9b]86// CHECK-ERROR: error: instruction requires: cpa87// CHECK-UNKNOWN:  9b628c20 <unknown>88