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 10st1d z0.d, p0, [x0] 11// CHECK-INST: st1d { z0.d }, p0, [x0] 12// CHECK-ENCODING: [0x00,0xe0,0xe0,0xe5] 13// CHECK-ERROR: instruction requires: sve 14// CHECK-UNKNOWN: 00 e0 e0 e5 <unknown> 15 16st1d { z0.d }, p0, [x0] 17// CHECK-INST: st1d { z0.d }, p0, [x0] 18// CHECK-ENCODING: [0x00,0xe0,0xe0,0xe5] 19// CHECK-ERROR: instruction requires: sve 20// CHECK-UNKNOWN: 00 e0 e0 e5 <unknown> 21 22st1d { z31.d }, p7, [sp, #-1, mul vl] 23// CHECK-INST: st1d { z31.d }, p7, [sp, #-1, mul vl] 24// CHECK-ENCODING: [0xff,0xff,0xef,0xe5] 25// CHECK-ERROR: instruction requires: sve 26// CHECK-UNKNOWN: ff ff ef e5 <unknown> 27 28st1d { z21.d }, p5, [x10, #5, mul vl] 29// CHECK-INST: st1d { z21.d }, p5, [x10, #5, mul vl] 30// CHECK-ENCODING: [0x55,0xf5,0xe5,0xe5] 31// CHECK-ERROR: instruction requires: sve 32// CHECK-UNKNOWN: 55 f5 e5 e5 <unknown> 33 34st1d { z0.d }, p0, [x0, x0, lsl #3] 35// CHECK-INST: st1d { z0.d }, p0, [x0, x0, lsl #3] 36// CHECK-ENCODING: [0x00,0x40,0xe0,0xe5] 37// CHECK-ERROR: instruction requires: sve 38// CHECK-UNKNOWN: 00 40 e0 e5 <unknown> 39 40st1d { z0.d }, p0, [x0, z0.d, uxtw] 41// CHECK-INST: st1d { z0.d }, p0, [x0, z0.d, uxtw] 42// CHECK-ENCODING: [0x00,0x80,0x80,0xe5] 43// CHECK-ERROR: instruction requires: sve 44// CHECK-UNKNOWN: 00 80 80 e5 <unknown> 45 46st1d { z0.d }, p0, [x0, z0.d, sxtw] 47// CHECK-INST: st1d { z0.d }, p0, [x0, z0.d, sxtw] 48// CHECK-ENCODING: [0x00,0xc0,0x80,0xe5] 49// CHECK-ERROR: instruction requires: sve 50// CHECK-UNKNOWN: 00 c0 80 e5 <unknown> 51 52st1d { z0.d }, p0, [x0, z0.d, uxtw #3] 53// CHECK-INST: st1d { z0.d }, p0, [x0, z0.d, uxtw #3] 54// CHECK-ENCODING: [0x00,0x80,0xa0,0xe5] 55// CHECK-ERROR: instruction requires: sve 56// CHECK-UNKNOWN: 00 80 a0 e5 <unknown> 57 58st1d { z0.d }, p0, [x0, z0.d, sxtw #3] 59// CHECK-INST: st1d { z0.d }, p0, [x0, z0.d, sxtw #3] 60// CHECK-ENCODING: [0x00,0xc0,0xa0,0xe5] 61// CHECK-ERROR: instruction requires: sve 62// CHECK-UNKNOWN: 00 c0 a0 e5 <unknown> 63 64st1d { z0.d }, p0, [x0, z0.d] 65// CHECK-INST: st1d { z0.d }, p0, [x0, z0.d] 66// CHECK-ENCODING: [0x00,0xa0,0x80,0xe5] 67// CHECK-ERROR: instruction requires: sve 68// CHECK-UNKNOWN: 00 a0 80 e5 <unknown> 69 70st1d { z0.d }, p0, [x0, z0.d, lsl #3] 71// CHECK-INST: st1d { z0.d }, p0, [x0, z0.d, lsl #3] 72// CHECK-ENCODING: [0x00,0xa0,0xa0,0xe5] 73// CHECK-ERROR: instruction requires: sve 74// CHECK-UNKNOWN: 00 a0 a0 e5 <unknown> 75 76st1d { z31.d }, p7, [z31.d, #248] 77// CHECK-INST: st1d { z31.d }, p7, [z31.d, #248] 78// CHECK-ENCODING: [0xff,0xbf,0xdf,0xe5] 79// CHECK-ERROR: instruction requires: sve 80// CHECK-UNKNOWN: ff bf df e5 <unknown> 81 82st1d { z0.d }, p7, [z0.d, #0] 83// CHECK-INST: st1d { z0.d }, p7, [z0.d] 84// CHECK-ENCODING: [0x00,0xbc,0xc0,0xe5] 85// CHECK-ERROR: instruction requires: sve 86// CHECK-UNKNOWN: 00 bc c0 e5 <unknown> 87 88st1d { z0.d }, p7, [z0.d] 89// CHECK-INST: st1d { z0.d }, p7, [z0.d] 90// CHECK-ENCODING: [0x00,0xbc,0xc0,0xe5] 91// CHECK-ERROR: instruction requires: sve 92// CHECK-UNKNOWN: 00 bc c0 e5 <unknown> 93