Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / st2q.s
blobcefb9197190779d9d93eb517044343537a8704bd
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p1 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 < %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=+sme2p1 < %s \
8 // RUN: | llvm-objdump -d --no-print-imm-hex --mattr=+sme2p1 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2p1 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sme2p1,-sve2p1 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p1 < %s \
12 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
13 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2p1 -disassemble -show-encoding \
14 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
16 st2q {z0.q, z1.q}, p0, [x0, x0, lsl #4] // 11100100-01100000-00000000-00000000
17 // CHECK-INST: st2q { z0.q, z1.q }, p0, [x0, x0, lsl #4]
18 // CHECK-ENCODING: [0x00,0x00,0x60,0xe4]
19 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
20 // CHECK-UNKNOWN: e4600000 <unknown>
22 st2q {z21.q, z22.q}, p5, [x10, x21, lsl #4] // 11100100-01110101-00010101-01010101
23 // CHECK-INST: st2q { z21.q, z22.q }, p5, [x10, x21, lsl #4]
24 // CHECK-ENCODING: [0x55,0x15,0x75,0xe4]
25 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
26 // CHECK-UNKNOWN: e4751555 <unknown>
28 st2q {z23.q, z24.q}, p3, [x13, x8, lsl #4] // 11100100-01101000-00001101-10110111
29 // CHECK-INST: st2q { z23.q, z24.q }, p3, [x13, x8, lsl #4]
30 // CHECK-ENCODING: [0xb7,0x0d,0x68,0xe4]
31 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
32 // CHECK-UNKNOWN: e4680db7 <unknown>
34 st2q {z0.q, z1.q}, p0, [x0] // 11100100-01000000-00000000-00000000
35 // CHECK-INST: st2q { z0.q, z1.q }, p0, [x0]
36 // CHECK-ENCODING: [0x00,0x00,0x40,0xe4]
37 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
38 // CHECK-UNKNOWN: e4400000 <unknown>
40 st2q {z21.q, z22.q}, p5, [x10, #10, mul vl] // 11100100-01000101-00010101-01010101
41 // CHECK-INST: st2q { z21.q, z22.q }, p5, [x10, #10, mul vl]
42 // CHECK-ENCODING: [0x55,0x15,0x45,0xe4]
43 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
44 // CHECK-UNKNOWN: e4451555 <unknown>
46 st2q {z23.q, z24.q}, p3, [x13, #-16, mul vl] // 11100100-01001000-00001101-10110111
47 // CHECK-INST: st2q { z23.q, z24.q }, p3, [x13, #-16, mul vl]
48 // CHECK-ENCODING: [0xb7,0x0d,0x48,0xe4]
49 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
50 // CHECK-UNKNOWN: e4480db7 <unknown>
52 st2q {z31.q, z0.q}, p7, [sp, #-2, mul vl] // 11100100-01001111-00011111-11111111
53 // CHECK-INST: st2q { z31.q, z0.q }, p7, [sp, #-2, mul vl]
54 // CHECK-ENCODING: [0xff,0x1f,0x4f,0xe4]
55 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
56 // CHECK-UNKNOWN: e44f1fff <unknown>