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