| 1 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \ |
| 8 |
// RUN: | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST |
| 9 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \ |
| 10 |
// RUN: | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 11 |
|
| 12 |
sqabs z31.b, p7/m, z31.b |
| 13 |
// CHECK-INST: sqabs z31.b, p7/m, z31.b |
| 14 |
// CHECK-ENCODING: [0xff,0xbf,0x08,0x44] |
| 15 |
// CHECK-ERROR: instruction requires: sve2 or sme |
| 16 |
// CHECK-UNKNOWN: 4408bfff <unknown> |
| 17 |
|
| 18 |
sqabs z31.h, p7/m, z31.h |
| 19 |
// CHECK-INST: sqabs z31.h, p7/m, z31.h |
| 20 |
// CHECK-ENCODING: [0xff,0xbf,0x48,0x44] |
| 21 |
// CHECK-ERROR: instruction requires: sve2 or sme |
| 22 |
// CHECK-UNKNOWN: 4448bfff <unknown> |
| 23 |
|
| 24 |
sqabs z31.s, p7/m, z31.s |
| 25 |
// CHECK-INST: sqabs z31.s, p7/m, z31.s |
| 26 |
// CHECK-ENCODING: [0xff,0xbf,0x88,0x44] |
| 27 |
// CHECK-ERROR: instruction requires: sve2 or sme |
| 28 |
// CHECK-UNKNOWN: 4488bfff <unknown> |
| 29 |
|
| 30 |
sqabs z31.d, p7/m, z31.d |
| 31 |
// CHECK-INST: sqabs z31.d, p7/m, z31.d |
| 32 |
// CHECK-ENCODING: [0xff,0xbf,0xc8,0x44] |
| 33 |
// CHECK-ERROR: instruction requires: sve2 or sme |
| 34 |
// CHECK-UNKNOWN: 44c8bfff <unknown> |
| 35 |
|
| 36 |
|
| 37 |
// --------------------------------------------------------------------------// |
| 38 |
// Test compatibility with MOVPRFX instruction. |
| 39 |
|
| 40 |
movprfx z4.s, p7/z, z6.s |
| 41 |
// CHECK-INST: movprfx z4.s, p7/z, z6.s |
| 42 |
// CHECK-ENCODING: [0xc4,0x3c,0x90,0x04] |
| 43 |
// CHECK-ERROR: instruction requires: sve or sme |
| 44 |
// CHECK-UNKNOWN: 04903cc4 <unknown> |
| 45 |
|
| 46 |
sqabs z4.s, p7/m, z31.s |
| 47 |
// CHECK-INST: sqabs z4.s, p7/m, z31.s |
| 48 |
// CHECK-ENCODING: [0xe4,0xbf,0x88,0x44] |
| 49 |
// CHECK-ERROR: instruction requires: sve2 or sme |
| 50 |
// CHECK-UNKNOWN: 4488bfe4 <unknown> |
| 51 |
|
| 52 |
movprfx z4, z6 |
| 53 |
// CHECK-INST: movprfx z4, z6 |
| 54 |
// CHECK-ENCODING: [0xc4,0xbc,0x20,0x04] |
| 55 |
// CHECK-ERROR: instruction requires: sve or sme |
| 56 |
// CHECK-UNKNOWN: 0420bcc4 <unknown> |
| 57 |
|
| 58 |
sqabs z4.s, p7/m, z31.s |
| 59 |
// CHECK-INST: sqabs z4.s, p7/m, z31.s |
| 60 |
// CHECK-ENCODING: [0xe4,0xbf,0x88,0x44] |
| 61 |
// CHECK-ERROR: instruction requires: sve2 or sme |
| 62 |
// CHECK-UNKNOWN: 4488bfe4 <unknown> |