| 1 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \ |
| 2 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 3 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \ |
| 4 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 5 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ |
| 6 |
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 7 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ |
| 8 |
// RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST |
| 9 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ |
| 10 |
// RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 11 |
|
| 12 |
sqdecp x0, p0.b |
| 13 |
// CHECK-INST: sqdecp x0, p0.b |
| 14 |
// CHECK-ENCODING: [0x00,0x8c,0x2a,0x25] |
| 15 |
// CHECK-ERROR: instruction requires: sve or sme |
| 16 |
// CHECK-UNKNOWN: 252a8c00 <unknown> |
| 17 |
|
| 18 |
sqdecp x0, p0.h |
| 19 |
// CHECK-INST: sqdecp x0, p0.h |
| 20 |
// CHECK-ENCODING: [0x00,0x8c,0x6a,0x25] |
| 21 |
// CHECK-ERROR: instruction requires: sve or sme |
| 22 |
// CHECK-UNKNOWN: 256a8c00 <unknown> |
| 23 |
|
| 24 |
sqdecp x0, p0.s |
| 25 |
// CHECK-INST: sqdecp x0, p0.s |
| 26 |
// CHECK-ENCODING: [0x00,0x8c,0xaa,0x25] |
| 27 |
// CHECK-ERROR: instruction requires: sve or sme |
| 28 |
// CHECK-UNKNOWN: 25aa8c00 <unknown> |
| 29 |
|
| 30 |
sqdecp x0, p0.d |
| 31 |
// CHECK-INST: sqdecp x0, p0.d |
| 32 |
// CHECK-ENCODING: [0x00,0x8c,0xea,0x25] |
| 33 |
// CHECK-ERROR: instruction requires: sve or sme |
| 34 |
// CHECK-UNKNOWN: 25ea8c00 <unknown> |
| 35 |
|
| 36 |
sqdecp xzr, p15.b, wzr |
| 37 |
// CHECK-INST: sqdecp xzr, p15.b, wzr |
| 38 |
// CHECK-ENCODING: [0xff,0x89,0x2a,0x25] |
| 39 |
// CHECK-ERROR: instruction requires: sve or sme |
| 40 |
// CHECK-UNKNOWN: 252a89ff <unknown> |
| 41 |
|
| 42 |
sqdecp xzr, p15.h, wzr |
| 43 |
// CHECK-INST: sqdecp xzr, p15.h, wzr |
| 44 |
// CHECK-ENCODING: [0xff,0x89,0x6a,0x25] |
| 45 |
// CHECK-ERROR: instruction requires: sve or sme |
| 46 |
// CHECK-UNKNOWN: 256a89ff <unknown> |
| 47 |
|
| 48 |
sqdecp xzr, p15.s, wzr |
| 49 |
// CHECK-INST: sqdecp xzr, p15.s, wzr |
| 50 |
// CHECK-ENCODING: [0xff,0x89,0xaa,0x25] |
| 51 |
// CHECK-ERROR: instruction requires: sve or sme |
| 52 |
// CHECK-UNKNOWN: 25aa89ff <unknown> |
| 53 |
|
| 54 |
sqdecp xzr, p15.d, wzr |
| 55 |
// CHECK-INST: sqdecp xzr, p15.d, wzr |
| 56 |
// CHECK-ENCODING: [0xff,0x89,0xea,0x25] |
| 57 |
// CHECK-ERROR: instruction requires: sve or sme |
| 58 |
// CHECK-UNKNOWN: 25ea89ff <unknown> |
| 59 |
|
| 60 |
sqdecp z0.h, p0 |
| 61 |
// CHECK-INST: sqdecp z0.h, p0.h |
| 62 |
// CHECK-ENCODING: [0x00,0x80,0x6a,0x25] |
| 63 |
// CHECK-ERROR: instruction requires: sve or sme |
| 64 |
// CHECK-UNKNOWN: 256a8000 <unknown> |
| 65 |
|
| 66 |
sqdecp z0.h, p0.h |
| 67 |
// CHECK-INST: sqdecp z0.h, p0.h |
| 68 |
// CHECK-ENCODING: [0x00,0x80,0x6a,0x25] |
| 69 |
// CHECK-ERROR: instruction requires: sve or sme |
| 70 |
// CHECK-UNKNOWN: 256a8000 <unknown> |
| 71 |
|
| 72 |
sqdecp z0.s, p0 |
| 73 |
// CHECK-INST: sqdecp z0.s, p0.s |
| 74 |
// CHECK-ENCODING: [0x00,0x80,0xaa,0x25] |
| 75 |
// CHECK-ERROR: instruction requires: sve or sme |
| 76 |
// CHECK-UNKNOWN: 25aa8000 <unknown> |
| 77 |
|
| 78 |
sqdecp z0.s, p0.s |
| 79 |
// CHECK-INST: sqdecp z0.s, p0.s |
| 80 |
// CHECK-ENCODING: [0x00,0x80,0xaa,0x25] |
| 81 |
// CHECK-ERROR: instruction requires: sve or sme |
| 82 |
// CHECK-UNKNOWN: 25aa8000 <unknown> |
| 83 |
|
| 84 |
sqdecp z0.d, p0 |
| 85 |
// CHECK-INST: sqdecp z0.d, p0.d |
| 86 |
// CHECK-ENCODING: [0x00,0x80,0xea,0x25] |
| 87 |
// CHECK-ERROR: instruction requires: sve or sme |
| 88 |
// CHECK-UNKNOWN: 25ea8000 <unknown> |
| 89 |
|
| 90 |
sqdecp z0.d, p0.d |
| 91 |
// CHECK-INST: sqdecp z0.d, p0.d |
| 92 |
// CHECK-ENCODING: [0x00,0x80,0xea,0x25] |
| 93 |
// CHECK-ERROR: instruction requires: sve or sme |
| 94 |
// CHECK-UNKNOWN: 25ea8000 <unknown> |
| 95 |
|
| 96 |
|
| 97 |
// --------------------------------------------------------------------------// |
| 98 |
// Test compatibility with MOVPRFX instruction. |
| 99 |
|
| 100 |
movprfx z0, z7 |
| 101 |
// CHECK-INST: movprfx z0, z7 |
| 102 |
// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04] |
| 103 |
// CHECK-ERROR: instruction requires: sve or sme |
| 104 |
// CHECK-UNKNOWN: 0420bce0 <unknown> |
| 105 |
|
| 106 |
sqdecp z0.d, p0.d |
| 107 |
// CHECK-INST: sqdecp z0.d, p0.d |
| 108 |
// CHECK-ENCODING: [0x00,0x80,0xea,0x25] |
| 109 |
// CHECK-ERROR: instruction requires: sve or sme |
| 110 |
// CHECK-UNKNOWN: 25ea8000 <unknown> |