Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / ld1rqb.s
blobb9e7f1ee53a5ae7a9a02b4fe72d1992d1db780c2
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
4 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8 // RUN: | llvm-objdump --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10 // RUN: | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 ld1rqb { z0.b }, p0/z, [x0]
13 // CHECK-INST: ld1rqb { z0.b }, p0/z, [x0]
14 // CHECK-ENCODING: [0x00,0x20,0x00,0xa4]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: a4002000 <unknown>
18 ld1rqb { z0.b }, p0/z, [x0, x0]
19 // CHECK-INST: ld1rqb { z0.b }, p0/z, [x0, x0]
20 // CHECK-ENCODING: [0x00,0x00,0x00,0xa4]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: a4000000 <unknown>
24 ld1rqb { z31.b }, p7/z, [sp, #-16]
25 // CHECK-INST: ld1rqb { z31.b }, p7/z, [sp, #-16]
26 // CHECK-ENCODING: [0xff,0x3f,0x0f,0xa4]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: a40f3fff <unknown>
30 ld1rqb { z23.b }, p3/z, [x13, #-128]
31 // CHECK-INST: ld1rqb { z23.b }, p3/z, [x13, #-128]
32 // CHECK-ENCODING: [0xb7,0x2d,0x08,0xa4]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: a4082db7 <unknown>
36 ld1rqb { z21.b }, p5/z, [x10, #112]
37 // CHECK-INST: ld1rqb { z21.b }, p5/z, [x10, #112]
38 // CHECK-ENCODING: [0x55,0x35,0x07,0xa4]
39 // CHECK-ERROR: instruction requires: sve or sme
40 // CHECK-UNKNOWN: a4073555 <unknown>