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 10ldff1d { z31.d }, p7/z, [sp] 11// CHECK-INST: ldff1d { z31.d }, p7/z, [sp] 12// CHECK-ENCODING: [0xff,0x7f,0xff,0xa5] 13// CHECK-ERROR: instruction requires: sve 14// CHECK-UNKNOWN: ff 7f ff a5 <unknown> 15 16ldff1d { z31.d }, p7/z, [sp, xzr, lsl #3] 17// CHECK-INST: ldff1d { z31.d }, p7/z, [sp] 18// CHECK-ENCODING: [0xff,0x7f,0xff,0xa5] 19// CHECK-ERROR: instruction requires: sve 20// CHECK-UNKNOWN: ff 7f ff a5 <unknown> 21 22ldff1d { z0.d }, p0/z, [x0, x0, lsl #3] 23// CHECK-INST: ldff1d { z0.d }, p0/z, [x0, x0, lsl #3] 24// CHECK-ENCODING: [0x00,0x60,0xe0,0xa5] 25// CHECK-ERROR: instruction requires: sve 26// CHECK-UNKNOWN: 00 60 e0 a5 <unknown> 27 28ldff1d { z31.d }, p7/z, [sp, z31.d] 29// CHECK-INST: ldff1d { z31.d }, p7/z, [sp, z31.d] 30// CHECK-ENCODING: [0xff,0xff,0xdf,0xc5] 31// CHECK-ERROR: instruction requires: sve 32// CHECK-UNKNOWN: ff ff df c5 <unknown> 33 34ldff1d { z23.d }, p3/z, [x13, z8.d, lsl #3] 35// CHECK-INST: ldff1d { z23.d }, p3/z, [x13, z8.d, lsl #3] 36// CHECK-ENCODING: [0xb7,0xed,0xe8,0xc5] 37// CHECK-ERROR: instruction requires: sve 38// CHECK-UNKNOWN: b7 ed e8 c5 <unknown> 39 40ldff1d { z21.d }, p5/z, [x10, z21.d, uxtw] 41// CHECK-INST: ldff1d { z21.d }, p5/z, [x10, z21.d, uxtw] 42// CHECK-ENCODING: [0x55,0x75,0x95,0xc5] 43// CHECK-ERROR: instruction requires: sve 44// CHECK-UNKNOWN: 55 75 95 c5 <unknown> 45 46ldff1d { z21.d }, p5/z, [x10, z21.d, sxtw] 47// CHECK-INST: ldff1d { z21.d }, p5/z, [x10, z21.d, sxtw] 48// CHECK-ENCODING: [0x55,0x75,0xd5,0xc5] 49// CHECK-ERROR: instruction requires: sve 50// CHECK-UNKNOWN: 55 75 d5 c5 <unknown> 51 52ldff1d { z0.d }, p0/z, [x0, z0.d, uxtw #3] 53// CHECK-INST: ldff1d { z0.d }, p0/z, [x0, z0.d, uxtw #3] 54// CHECK-ENCODING: [0x00,0x60,0xa0,0xc5] 55// CHECK-ERROR: instruction requires: sve 56// CHECK-UNKNOWN: 00 60 a0 c5 <unknown> 57 58ldff1d { z0.d }, p0/z, [x0, z0.d, sxtw #3] 59// CHECK-INST: ldff1d { z0.d }, p0/z, [x0, z0.d, sxtw #3] 60// CHECK-ENCODING: [0x00,0x60,0xe0,0xc5] 61// CHECK-ERROR: instruction requires: sve 62// CHECK-UNKNOWN: 00 60 e0 c5 <unknown> 63 64ldff1d { z31.d }, p7/z, [z31.d, #248] 65// CHECK-INST: ldff1d { z31.d }, p7/z, [z31.d, #248] 66// CHECK-ENCODING: [0xff,0xff,0xbf,0xc5] 67// CHECK-ERROR: instruction requires: sve 68// CHECK-UNKNOWN: ff ff bf c5 <unknown> 69 70ldff1d { z0.d }, p0/z, [z0.d] 71// CHECK-INST: ldff1d { z0.d }, p0/z, [z0.d] 72// CHECK-ENCODING: [0x00,0xe0,0xa0,0xc5] 73// CHECK-ERROR: instruction requires: sve 74// CHECK-UNKNOWN: 00 e0 a0 c5 <unknown> 75