brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.0 KiB · 2116a25 Raw
175 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \4// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \8// RUN:        | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN:   | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12eor     z5.b, z5.b, #0xf913// CHECK-INST: eor     z5.b, z5.b, #0xf914// CHECK-ENCODING: [0xa5,0x2e,0x40,0x05]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 05402ea5 <unknown>17 18eor     z23.h, z23.h, #0xfff919// CHECK-INST: eor     z23.h, z23.h, #0xfff920// CHECK-ENCODING: [0xb7,0x6d,0x40,0x05]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 05406db7 <unknown>23 24eor     z0.s, z0.s, #0xfffffff925// CHECK-INST: eor     z0.s, z0.s, #0xfffffff926// CHECK-ENCODING: [0xa0,0xeb,0x40,0x05]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 0540eba0 <unknown>29 30eor     z0.d, z0.d, #0xfffffffffffffff931// CHECK-INST: eor     z0.d, z0.d, #0xfffffffffffffff932// CHECK-ENCODING: [0xa0,0xef,0x43,0x05]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 0543efa0 <unknown>35 36eor     z5.b, z5.b, #0x637// CHECK-INST: eor     z5.b, z5.b, #0x638// CHECK-ENCODING: [0x25,0x3e,0x40,0x05]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 05403e25 <unknown>41 42eor     z23.h, z23.h, #0x643// CHECK-INST: eor     z23.h, z23.h, #0x644// CHECK-ENCODING: [0x37,0x7c,0x40,0x05]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 05407c37 <unknown>47 48eor     z0.s, z0.s, #0x649// CHECK-INST: eor     z0.s, z0.s, #0x650// CHECK-ENCODING: [0x20,0xf8,0x40,0x05]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 0540f820 <unknown>53 54eor     z0.d, z0.d, #0x655// CHECK-INST: eor     z0.d, z0.d, #0x656// CHECK-ENCODING: [0x20,0xf8,0x43,0x05]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 0543f820 <unknown>59 60eor     z23.d, z13.d, z8.d61// CHECK-INST: eor     z23.d, z13.d, z8.d62// CHECK-ENCODING: [0xb7,0x31,0xa8,0x04]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 04a831b7 <unknown>65 66eor     z0.d, z0.d, z0.d67// CHECK-INST: eor     z0.d, z0.d, z0.d68// CHECK-ENCODING: [0x00,0x30,0xa0,0x04]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 04a03000 <unknown>71 72eor     z31.s, p7/m, z31.s, z31.s73// CHECK-INST: eor     z31.s, p7/m, z31.s, z31.s74// CHECK-ENCODING: [0xff,0x1f,0x99,0x04]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 04991fff <unknown>77 78eor     z31.h, p7/m, z31.h, z31.h79// CHECK-INST: eor     z31.h, p7/m, z31.h, z31.h80// CHECK-ENCODING: [0xff,0x1f,0x59,0x04]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 04591fff <unknown>83 84eor     z31.d, p7/m, z31.d, z31.d85// CHECK-INST: eor     z31.d, p7/m, z31.d, z31.d86// CHECK-ENCODING: [0xff,0x1f,0xd9,0x04]87// CHECK-ERROR: instruction requires: sve or sme88// CHECK-UNKNOWN: 04d91fff <unknown>89 90eor     z31.b, p7/m, z31.b, z31.b91// CHECK-INST: eor     z31.b, p7/m, z31.b, z31.b92// CHECK-ENCODING: [0xff,0x1f,0x19,0x04]93// CHECK-ERROR: instruction requires: sve or sme94// CHECK-UNKNOWN: 04191fff <unknown>95 96eor     p0.b, p0/z, p0.b, p1.b97// CHECK-INST: eor     p0.b, p0/z, p0.b, p1.b98// CHECK-ENCODING: [0x00,0x42,0x01,0x25]99// CHECK-ERROR: instruction requires: sve or sme100// CHECK-UNKNOWN: 25014200 <unknown>101 102eor     p0.b, p0/z, p0.b, p0.b103// CHECK-INST: not     p0.b, p0/z, p0.b104// CHECK-ENCODING: [0x00,0x42,0x00,0x25]105// CHECK-ERROR: instruction requires: sve or sme106// CHECK-UNKNOWN: 25004200 <unknown>107 108eor     p15.b, p15/z, p15.b, p15.b109// CHECK-INST: not     p15.b, p15/z, p15.b110// CHECK-ENCODING: [0xef,0x7f,0x0f,0x25]111// CHECK-ERROR: instruction requires: sve or sme112// CHECK-UNKNOWN: 250f7fef <unknown>113 114 115// --------------------------------------------------------------------------//116// Test aliases.117 118eor     z0.s, z0.s, z0.s119// CHECK-INST: eor     z0.d, z0.d, z0.d120// CHECK-ENCODING: [0x00,0x30,0xa0,0x04]121// CHECK-ERROR: instruction requires: sve or sme122// CHECK-UNKNOWN: 04a03000 <unknown>123 124eor     z0.h, z0.h, z0.h125// CHECK-INST: eor     z0.d, z0.d, z0.d126// CHECK-ENCODING: [0x00,0x30,0xa0,0x04]127// CHECK-ERROR: instruction requires: sve or sme128// CHECK-UNKNOWN: 04a03000 <unknown>129 130eor     z0.b, z0.b, z0.b131// CHECK-INST: eor     z0.d, z0.d, z0.d132// CHECK-ENCODING: [0x00,0x30,0xa0,0x04]133// CHECK-ERROR: instruction requires: sve or sme134// CHECK-UNKNOWN: 04a03000 <unknown>135 136 137// --------------------------------------------------------------------------//138// Test compatibility with MOVPRFX instruction.139 140movprfx z4.b, p7/z, z6.b141// CHECK-INST: movprfx	z4.b, p7/z, z6.b142// CHECK-ENCODING: [0xc4,0x3c,0x10,0x04]143// CHECK-ERROR: instruction requires: sve or sme144// CHECK-UNKNOWN: 04103cc4 <unknown>145 146eor     z4.b, p7/m, z4.b, z31.b147// CHECK-INST: eor	z4.b, p7/m, z4.b, z31.b148// CHECK-ENCODING: [0xe4,0x1f,0x19,0x04]149// CHECK-ERROR: instruction requires: sve or sme150// CHECK-UNKNOWN: 04191fe4 <unknown>151 152movprfx z4, z6153// CHECK-INST: movprfx	z4, z6154// CHECK-ENCODING: [0xc4,0xbc,0x20,0x04]155// CHECK-ERROR: instruction requires: sve or sme156// CHECK-UNKNOWN: 0420bcc4 <unknown>157 158eor     z4.b, p7/m, z4.b, z31.b159// CHECK-INST: eor	z4.b, p7/m, z4.b, z31.b160// CHECK-ENCODING: [0xe4,0x1f,0x19,0x04]161// CHECK-ERROR: instruction requires: sve or sme162// CHECK-UNKNOWN: 04191fe4 <unknown>163 164movprfx z0, z7165// CHECK-INST: movprfx	z0, z7166// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]167// CHECK-ERROR: instruction requires: sve or sme168// CHECK-UNKNOWN: 0420bce0 <unknown>169 170eor     z0.d, z0.d, #0x6171// CHECK-INST: eor	z0.d, z0.d, #0x6172// CHECK-ENCODING: [0x20,0xf8,0x43,0x05]173// CHECK-ERROR: instruction requires: sve or sme174// CHECK-UNKNOWN: 0543f820 <unknown>175