70 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve -mattr=+cpa < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme -mattr=+cpa < %s 2>&1 \4// RUN: | FileCheck %s --check-prefixes=CHECK-ERROR-NO-SVE5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN: | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+cpa < %s 2>&1 \8// RUN: | FileCheck %s --check-prefix=CHECK-ERROR-NO-SVE9// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s 2>&1 \10// RUN: | FileCheck %s --check-prefix=CHECK-ERROR-NO-CPA11// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s 2>&1 \12// RUN: | FileCheck %s --check-prefix=CHECK-ERROR13// 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-INST16// 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-UNKNOWN19// 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-UNKNOWN22 23addpt z23.d, z13.d, z8.d24// CHECK-INST: addpt z23.d, z13.d, z8.d25// CHECK-ENCODING: [0xb7,0x09,0xe8,0x04]26// CHECK-ERROR: instruction requires: cpa sve27// CHECK-ERROR-NO-SVE: instruction requires: sve28// CHECK-ERROR-NO-CPA: instruction requires: cpa29// CHECK-UNKNOWN: 04e809b7 <unknown>30 31addpt z23.d, p3/m, z23.d, z13.d32// CHECK-INST: addpt z23.d, p3/m, z23.d, z13.d33// CHECK-ENCODING: [0xb7,0x0d,0xc4,0x04]34// CHECK-ERROR: instruction requires: cpa sve35// CHECK-ERROR-NO-SVE: instruction requires: sve36// CHECK-ERROR-NO-CPA: instruction requires: cpa37// CHECK-UNKNOWN: 04c40db7 <unknown>38 39subpt z23.d, z13.d, z8.d40// CHECK-INST: subpt z23.d, z13.d, z8.d41// CHECK-ENCODING: [0xb7,0x0d,0xe8,0x04]42// CHECK-ERROR: instruction requires: cpa sve43// CHECK-ERROR-NO-SVE: instruction requires: sve44// CHECK-ERROR-NO-CPA: instruction requires: cpa45// CHECK-UNKNOWN: 04e80db7 <unknown>46 47subpt z23.d, p3/m, z23.d, z13.d48// CHECK-INST: subpt z23.d, p3/m, z23.d, z13.d49// CHECK-ENCODING: [0xb7,0x0d,0xc5,0x04]50// CHECK-ERROR: instruction requires: cpa sve51// CHECK-ERROR-NO-SVE: instruction requires: sve52// CHECK-ERROR-NO-CPA: instruction requires: cpa53// CHECK-UNKNOWN: 04c50db7 <unknown>54 55madpt z0.d, z1.d, z31.d56// CHECK-INST: madpt z0.d, z1.d, z31.d57// CHECK-ENCODING: [0xe0,0xdb,0xc1,0x44]58// CHECK-ERROR: instruction requires: cpa sve59// CHECK-ERROR-NO-SVE: instruction requires: sve60// CHECK-ERROR-NO-CPA: instruction requires: cpa61// CHECK-UNKNOWN: 44c1dbe0 <unknown>62 63mlapt z0.d, z1.d, z31.d64// CHECK-INST: mlapt z0.d, z1.d, z31.d65// CHECK-ENCODING: [0x20,0xd0,0xdf,0x44]66// CHECK-ERROR: instruction requires: cpa sve67// CHECK-ERROR-NO-SVE: instruction requires: sve68// CHECK-ERROR-NO-CPA: instruction requires: cpa69// CHECK-UNKNOWN: 44dfd020 <unknown>70