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 10eon z5.b, z5.b, #0xf9 11// CHECK-INST: eor z5.b, z5.b, #0x6 12// CHECK-ENCODING: [0x25,0x3e,0x40,0x05] 13// CHECK-ERROR: instruction requires: sve 14// CHECK-UNKNOWN: 25 3e 40 05 <unknown> 15 16eon z23.h, z23.h, #0xfff9 17// CHECK-INST: eor z23.h, z23.h, #0x6 18// CHECK-ENCODING: [0x37,0x7c,0x40,0x05] 19// CHECK-ERROR: instruction requires: sve 20// CHECK-UNKNOWN: 37 7c 40 05 <unknown> 21 22eon z0.s, z0.s, #0xfffffff9 23// CHECK-INST: eor z0.s, z0.s, #0x6 24// CHECK-ENCODING: [0x20,0xf8,0x40,0x05] 25// CHECK-ERROR: instruction requires: sve 26// CHECK-UNKNOWN: 20 f8 40 05 <unknown> 27 28eon z0.d, z0.d, #0xfffffffffffffff9 29// CHECK-INST: eor z0.d, z0.d, #0x6 30// CHECK-ENCODING: [0x20,0xf8,0x43,0x05] 31// CHECK-ERROR: instruction requires: sve 32// CHECK-UNKNOWN: 20 f8 43 05 <unknown> 33 34eon z5.b, z5.b, #0x6 35// CHECK-INST: eor z5.b, z5.b, #0xf9 36// CHECK-ENCODING: [0xa5,0x2e,0x40,0x05] 37// CHECK-ERROR: instruction requires: sve 38// CHECK-UNKNOWN: a5 2e 40 05 <unknown> 39 40eon z23.h, z23.h, #0x6 41// CHECK-INST: eor z23.h, z23.h, #0xfff9 42// CHECK-ENCODING: [0xb7,0x6d,0x40,0x05] 43// CHECK-ERROR: instruction requires: sve 44// CHECK-UNKNOWN: b7 6d 40 05 <unknown> 45 46eon z0.s, z0.s, #0x6 47// CHECK-INST: eor z0.s, z0.s, #0xfffffff9 48// CHECK-ENCODING: [0xa0,0xeb,0x40,0x05] 49// CHECK-ERROR: instruction requires: sve 50// CHECK-UNKNOWN: a0 eb 40 05 <unknown> 51 52eon z0.d, z0.d, #0x6 53// CHECK-INST: eor z0.d, z0.d, #0xfffffffffffffff9 54// CHECK-ENCODING: [0xa0,0xef,0x43,0x05] 55// CHECK-ERROR: instruction requires: sve 56// CHECK-UNKNOWN: a0 ef 43 05 <unknown> 57 58 59// --------------------------------------------------------------------------// 60// Test compatibility with MOVPRFX instruction. 61 62movprfx z0, z7 63// CHECK-INST: movprfx z0, z7 64// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04] 65// CHECK-ERROR: instruction requires: sve 66// CHECK-UNKNOWN: e0 bc 20 04 <unknown> 67 68eon z0.d, z0.d, #0x6 69// CHECK-INST: eor z0.d, z0.d, #0xfffffffffffffff9 70// CHECK-ENCODING: [0xa0,0xef,0x43,0x05] 71// CHECK-ERROR: instruction requires: sve 72// CHECK-UNKNOWN: a0 ef 43 05 <unknown> 73