1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \ 2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST 3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ 4// RUN: | FileCheck %s --check-prefix=CHECK-ERROR 5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ 6// RUN: | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST 7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ 8// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN 9 10clasta w0, p7, w0, z31.b 11// CHECK-INST: clasta w0, p7, w0, z31.b 12// CHECK-ENCODING: [0xe0,0xbf,0x30,0x05] 13// CHECK-ERROR: instruction requires: sve 14// CHECK-UNKNOWN: e0 bf 30 05 <unknown> 15 16clasta w0, p7, w0, z31.h 17// CHECK-INST: clasta w0, p7, w0, z31.h 18// CHECK-ENCODING: [0xe0,0xbf,0x70,0x05] 19// CHECK-ERROR: instruction requires: sve 20// CHECK-UNKNOWN: e0 bf 70 05 <unknown> 21 22clasta w0, p7, w0, z31.s 23// CHECK-INST: clasta w0, p7, w0, z31.s 24// CHECK-ENCODING: [0xe0,0xbf,0xb0,0x05] 25// CHECK-ERROR: instruction requires: sve 26// CHECK-UNKNOWN: e0 bf b0 05 <unknown> 27 28clasta x0, p7, x0, z31.d 29// CHECK-INST: clasta x0, p7, x0, z31.d 30// CHECK-ENCODING: [0xe0,0xbf,0xf0,0x05] 31// CHECK-ERROR: instruction requires: sve 32// CHECK-UNKNOWN: e0 bf f0 05 <unknown> 33 34clasta b0, p7, b0, z31.b 35// CHECK-INST: clasta b0, p7, b0, z31.b 36// CHECK-ENCODING: [0xe0,0x9f,0x2a,0x05] 37// CHECK-ERROR: instruction requires: sve 38// CHECK-UNKNOWN: e0 9f 2a 05 <unknown> 39 40clasta h0, p7, h0, z31.h 41// CHECK-INST: clasta h0, p7, h0, z31.h 42// CHECK-ENCODING: [0xe0,0x9f,0x6a,0x05] 43// CHECK-ERROR: instruction requires: sve 44// CHECK-UNKNOWN: e0 9f 6a 05 <unknown> 45 46clasta s0, p7, s0, z31.s 47// CHECK-INST: clasta s0, p7, s0, z31.s 48// CHECK-ENCODING: [0xe0,0x9f,0xaa,0x05] 49// CHECK-ERROR: instruction requires: sve 50// CHECK-UNKNOWN: e0 9f aa 05 <unknown> 51 52clasta d0, p7, d0, z31.d 53// CHECK-INST: clasta d0, p7, d0, z31.d 54// CHECK-ENCODING: [0xe0,0x9f,0xea,0x05] 55// CHECK-ERROR: instruction requires: sve 56// CHECK-UNKNOWN: e0 9f ea 05 <unknown> 57 58clasta z0.b, p7, z0.b, z31.b 59// CHECK-INST: clasta z0.b, p7, z0.b, z31.b 60// CHECK-ENCODING: [0xe0,0x9f,0x28,0x05] 61// CHECK-ERROR: instruction requires: sve 62// CHECK-UNKNOWN: e0 9f 28 05 <unknown> 63 64clasta z0.h, p7, z0.h, z31.h 65// CHECK-INST: clasta z0.h, p7, z0.h, z31.h 66// CHECK-ENCODING: [0xe0,0x9f,0x68,0x05] 67// CHECK-ERROR: instruction requires: sve 68// CHECK-UNKNOWN: e0 9f 68 05 <unknown> 69 70clasta z0.s, p7, z0.s, z31.s 71// CHECK-INST: clasta z0.s, p7, z0.s, z31.s 72// CHECK-ENCODING: [0xe0,0x9f,0xa8,0x05] 73// CHECK-ERROR: instruction requires: sve 74// CHECK-UNKNOWN: e0 9f a8 05 <unknown> 75 76clasta z0.d, p7, z0.d, z31.d 77// CHECK-INST: clasta z0.d, p7, z0.d, z31.d 78// CHECK-ENCODING: [0xe0,0x9f,0xe8,0x05] 79// CHECK-ERROR: instruction requires: sve 80// CHECK-UNKNOWN: e0 9f e8 05 <unknown> 81 82 83// --------------------------------------------------------------------------// 84// Test compatibility with MOVPRFX instruction. 85 86movprfx z0, z7 87// CHECK-INST: movprfx z0, z7 88// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04] 89// CHECK-ERROR: instruction requires: sve 90// CHECK-UNKNOWN: e0 bc 20 04 <unknown> 91 92clasta z0.d, p7, z0.d, z31.d 93// CHECK-INST: clasta z0.d, p7, z0.d, z31.d 94// CHECK-ENCODING: [0xe0,0x9f,0xe8,0x05] 95// CHECK-ERROR: instruction requires: sve 96// CHECK-UNKNOWN: e0 9f e8 05 <unknown> 97