160 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+lse128 < %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=+lse128 < %s \6// RUN: | llvm-objdump -d --mattr=+lse128 - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+lse128 < %s \8// RUN: | llvm-objdump -d --mattr=-lse128 - | 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=+lse128 < %s \11// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN: | llvm-mc -triple=aarch64 -mattr=+lse128 -disassemble -show-encoding \13// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15 16 17ldclrp x1, x2, [x11]18// CHECK-INST: ldclrp x1, x2, [x11]19// CHECK-ENCODING: encoding: [0x61,0x11,0x22,0x19]20// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12821// CHECK-UNKNOWN: 19221161 <unknown>22 23ldclrp x21, x22, [sp]24// CHECK-INST: ldclrp x21, x22, [sp]25// CHECK-ENCODING: encoding: [0xf5,0x13,0x36,0x19]26// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12827// CHECK-UNKNOWN: 193613f5 <unknown>28 29ldclrpa x1, x2, [x11]30// CHECK-INST: ldclrpa x1, x2, [x11]31// CHECK-ENCODING: encoding: [0x61,0x11,0xa2,0x19]32// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12833// CHECK-UNKNOWN: 19a21161 <unknown>34 35ldclrpa x21, x22, [sp]36// CHECK-INST: ldclrpa x21, x22, [sp]37// CHECK-ENCODING: encoding: [0xf5,0x13,0xb6,0x19]38// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12839// CHECK-UNKNOWN: 19b613f5 <unknown>40 41ldclrpal x1, x2, [x11]42// CHECK-INST: ldclrpal x1, x2, [x11]43// CHECK-ENCODING: encoding: [0x61,0x11,0xe2,0x19]44// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12845// CHECK-UNKNOWN: 19e21161 <unknown>46 47ldclrpal x21, x22, [sp]48// CHECK-INST: ldclrpal x21, x22, [sp]49// CHECK-ENCODING: encoding: [0xf5,0x13,0xf6,0x19]50// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12851// CHECK-UNKNOWN: 19f613f5 <unknown>52 53ldclrpl x1, x2, [x11]54// CHECK-INST: ldclrpl x1, x2, [x11]55// CHECK-ENCODING: encoding: [0x61,0x11,0x62,0x19]56// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12857// CHECK-UNKNOWN: 19621161 <unknown>58 59ldclrpl x21, x22, [sp]60// CHECK-INST: ldclrpl x21, x22, [sp]61// CHECK-ENCODING: encoding: [0xf5,0x13,0x76,0x19]62// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12863// CHECK-UNKNOWN: 197613f5 <unknown>64 65ldsetp x1, x2, [x11]66// CHECK-INST: ldsetp x1, x2, [x11]67// CHECK-ENCODING: encoding: [0x61,0x31,0x22,0x19]68// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12869// CHECK-UNKNOWN: 19223161 <unknown>70 71ldsetp x21, x22, [sp]72// CHECK-INST: ldsetp x21, x22, [sp]73// CHECK-ENCODING: encoding: [0xf5,0x33,0x36,0x19]74// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12875// CHECK-UNKNOWN: 193633f5 <unknown>76 77ldsetpa x1, x2, [x11]78// CHECK-INST: ldsetpa x1, x2, [x11]79// CHECK-ENCODING: encoding: [0x61,0x31,0xa2,0x19]80// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12881// CHECK-UNKNOWN: 19a23161 <unknown>82 83ldsetpa x21, x22, [sp]84// CHECK-INST: ldsetpa x21, x22, [sp]85// CHECK-ENCODING: encoding: [0xf5,0x33,0xb6,0x19]86// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12887// CHECK-UNKNOWN: 19b633f5 <unknown>88 89ldsetpal x1, x2, [x11]90// CHECK-INST: ldsetpal x1, x2, [x11]91// CHECK-ENCODING: encoding: [0x61,0x31,0xe2,0x19]92// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12893// CHECK-UNKNOWN: 19e23161 <unknown>94 95ldsetpal x21, x22, [sp]96// CHECK-INST: ldsetpal x21, x22, [sp]97// CHECK-ENCODING: encoding: [0xf5,0x33,0xf6,0x19]98// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse12899// CHECK-UNKNOWN: 19f633f5 <unknown>100 101ldsetpl x1, x2, [x11]102// CHECK-INST: ldsetpl x1, x2, [x11]103// CHECK-ENCODING: encoding: [0x61,0x31,0x62,0x19]104// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128105// CHECK-UNKNOWN: 19623161 <unknown>106 107ldsetpl x21, x22, [sp]108// CHECK-INST: ldsetpl x21, x22, [sp]109// CHECK-ENCODING: encoding: [0xf5,0x33,0x76,0x19]110// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128111// CHECK-UNKNOWN: 197633f5 <unknown>112 113swpp x1, x2, [x11]114// CHECK-INST: swpp x1, x2, [x11]115// CHECK-ENCODING: encoding: [0x61,0x81,0x22,0x19]116// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128117// CHECK-UNKNOWN: 19228161 <unknown>118 119swpp x21, x22, [sp]120// CHECK-INST: swpp x21, x22, [sp]121// CHECK-ENCODING: encoding: [0xf5,0x83,0x36,0x19]122// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128123// CHECK-UNKNOWN: 193683f5 <unknown>124 125swppa x1, x2, [x11]126// CHECK-INST: swppa x1, x2, [x11]127// CHECK-ENCODING: encoding: [0x61,0x81,0xa2,0x19]128// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128129// CHECK-UNKNOWN: 19a28161 <unknown>130 131swppa x21, x22, [sp]132// CHECK-INST: swppa x21, x22, [sp]133// CHECK-ENCODING: encoding: [0xf5,0x83,0xb6,0x19]134// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128135// CHECK-UNKNOWN: 19b683f5 <unknown>136 137swppal x1, x2, [x11]138// CHECK-INST: swppal x1, x2, [x11]139// CHECK-ENCODING: encoding: [0x61,0x81,0xe2,0x19]140// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128141// CHECK-UNKNOWN: 19e28161 <unknown>142 143swppal x21, x22, [sp]144// CHECK-INST: swppal x21, x22, [sp]145// CHECK-ENCODING: encoding: [0xf5,0x83,0xf6,0x19]146// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128147// CHECK-UNKNOWN: 19f683f5 <unknown>148 149swppl x1, x2, [x11]150// CHECK-INST: swppl x1, x2, [x11]151// CHECK-ENCODING: encoding: [0x61,0x81,0x62,0x19]152// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128153// CHECK-UNKNOWN: 19628161 <unknown>154 155swppl x21, x22, [sp]156// CHECK-INST: swppl x21, x22, [sp]157// CHECK-ENCODING: encoding: [0xf5,0x83,0x76,0x19]158// CHECK-ERROR: :[[@LINE-3]]:1: error: instruction requires: lse128159// CHECK-UNKNOWN: 197683f5 <unknown>160