| 1 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve -mattr=+cpa < %s \ |
| 2 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 3 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme -mattr=+cpa < %s 2>&1 \ |
| 4 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ERROR-NO-SVE |
| 5 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ |
| 6 |
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 7 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+cpa < %s 2>&1 \ |
| 8 |
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR-NO-SVE |
| 9 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s 2>&1 \ |
| 10 |
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR-NO-CPA |
| 11 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s 2>&1 \ |
| 12 |
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 13 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve -mattr=+cpa < %s \ |
| 14 |
// RUN: | llvm-objdump -d --mattr=+sve --mattr=+cpa - \ |
| 15 |
// RUN: | FileCheck %s --check-prefix=CHECK-INST |
| 16 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve -mattr=+cpa < %s \ |
| 17 |
// RUN: | llvm-objdump -d --mattr=+sve --mattr=-cpa - \ |
| 18 |
// RUN: | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 19 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve -mattr=+cpa < %s \ |
| 20 |
// RUN: | llvm-objdump -d --mattr=-sve --mattr=+cpa - \ |
| 21 |
// RUN: | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 22 |
|
| 23 |
addpt z23.d, z13.d, z8.d |
| 24 |
// CHECK-INST: addpt z23.d, z13.d, z8.d |
| 25 |
// CHECK-ENCODING: [0xb7,0x09,0xe8,0x04] |
| 26 |
// CHECK-ERROR: instruction requires: cpa sve |
| 27 |
// CHECK-ERROR-NO-SVE: instruction requires: sve |
| 28 |
// CHECK-ERROR-NO-CPA: instruction requires: cpa |
| 29 |
// CHECK-UNKNOWN: 04e809b7 <unknown> |
| 30 |
|
| 31 |
addpt z23.d, p3/m, z23.d, z13.d |
| 32 |
// CHECK-INST: addpt z23.d, p3/m, z23.d, z13.d |
| 33 |
// CHECK-ENCODING: [0xb7,0x0d,0xc4,0x04] |
| 34 |
// CHECK-ERROR: instruction requires: cpa sve |
| 35 |
// CHECK-ERROR-NO-SVE: instruction requires: sve |
| 36 |
// CHECK-ERROR-NO-CPA: instruction requires: cpa |
| 37 |
// CHECK-UNKNOWN: 04c40db7 <unknown> |
| 38 |
|
| 39 |
subpt z23.d, z13.d, z8.d |
| 40 |
// CHECK-INST: subpt z23.d, z13.d, z8.d |
| 41 |
// CHECK-ENCODING: [0xb7,0x0d,0xe8,0x04] |
| 42 |
// CHECK-ERROR: instruction requires: cpa sve |
| 43 |
// CHECK-ERROR-NO-SVE: instruction requires: sve |
| 44 |
// CHECK-ERROR-NO-CPA: instruction requires: cpa |
| 45 |
// CHECK-UNKNOWN: 04e80db7 <unknown> |
| 46 |
|
| 47 |
subpt z23.d, p3/m, z23.d, z13.d |
| 48 |
// CHECK-INST: subpt z23.d, p3/m, z23.d, z13.d |
| 49 |
// CHECK-ENCODING: [0xb7,0x0d,0xc5,0x04] |
| 50 |
// CHECK-ERROR: instruction requires: cpa sve |
| 51 |
// CHECK-ERROR-NO-SVE: instruction requires: sve |
| 52 |
// CHECK-ERROR-NO-CPA: instruction requires: cpa |
| 53 |
// CHECK-UNKNOWN: 04c50db7 <unknown> |
| 54 |
|
| 55 |
madpt z0.d, z1.d, z31.d |
| 56 |
// CHECK-INST: madpt z0.d, z1.d, z31.d |
| 57 |
// CHECK-ENCODING: [0xe0,0xdb,0xc1,0x44] |
| 58 |
// CHECK-ERROR: instruction requires: cpa sve |
| 59 |
// CHECK-ERROR-NO-SVE: instruction requires: sve |
| 60 |
// CHECK-ERROR-NO-CPA: instruction requires: cpa |
| 61 |
// CHECK-UNKNOWN: 44c1dbe0 <unknown> |
| 62 |
|
| 63 |
mlapt z0.d, z1.d, z31.d |
| 64 |
// CHECK-INST: mlapt z0.d, z1.d, z31.d |
| 65 |
// CHECK-ENCODING: [0x20,0xd0,0xdf,0x44] |
| 66 |
// CHECK-ERROR: instruction requires: cpa sve |
| 67 |
// CHECK-ERROR-NO-SVE: instruction requires: sve |
| 68 |
// CHECK-ERROR-NO-CPA: instruction requires: cpa |
| 69 |
// CHECK-UNKNOWN: 44dfd020 <unknown> |