Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / st3q.s
blob05b4a01c051a189e549841bb2555a26bef6fde6f
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 st3q {z0.q, z1.q, z2.q}, p0, [x0, x0, lsl #4] // 11100100-10100000-00000000-00000000
17 // CHECK-INST: st3q { z0.q - z2.q }, p0, [x0, x0, lsl #4]
18 // CHECK-ENCODING: [0x00,0x00,0xa0,0xe4]
19 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
20 // CHECK-UNKNOWN: e4a00000 <unknown>
22 st3q {z21.q, z22.q, z23.q}, p5, [x10, x21, lsl #4] // 11100100-10110101-00010101-01010101
23 // CHECK-INST: st3q { z21.q - z23.q }, p5, [x10, x21, lsl #4]
24 // CHECK-ENCODING: [0x55,0x15,0xb5,0xe4]
25 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
26 // CHECK-UNKNOWN: e4b51555 <unknown>
28 st3q {z23.q, z24.q, z25.q}, p3, [x13, x8, lsl #4] // 11100100-10101000-00001101-10110111
29 // CHECK-INST: st3q { z23.q - z25.q }, p3, [x13, x8, lsl #4]
30 // CHECK-ENCODING: [0xb7,0x0d,0xa8,0xe4]
31 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
32 // CHECK-UNKNOWN: e4a80db7 <unknown>
34 st3q {z0.q, z1.q, z2.q}, p0, [x0] // 11100100-10000000-00000000-00000000
35 // CHECK-INST: st3q { z0.q - z2.q }, p0, [x0]
36 // CHECK-ENCODING: [0x00,0x00,0x80,0xe4]
37 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
38 // CHECK-UNKNOWN: e4800000 <unknown>
40 st3q {z21.q, z22.q, z23.q}, p5, [x10, #15, mul vl] // 11100100-10000101-00010101-01010101
41 // CHECK-INST: st3q { z21.q - z23.q }, p5, [x10, #15, mul vl]
42 // CHECK-ENCODING: [0x55,0x15,0x85,0xe4]
43 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
44 // CHECK-UNKNOWN: e4851555 <unknown>
46 st3q {z23.q, z24.q, z25.q}, p3, [x13, #-24, mul vl] // 11100100-10001000-00001101-10110111
47 // CHECK-INST: st3q { z23.q - z25.q }, p3, [x13, #-24, mul vl]
48 // CHECK-ENCODING: [0xb7,0x0d,0x88,0xe4]
49 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
50 // CHECK-UNKNOWN: e4880db7 <unknown>
52 st3q {z31.q, z0.q, z1.q}, p7, [sp, #-3, mul vl] // 11100100-10001111-00011111-11111111
53 // CHECK-INST: st3q { z31.q, z0.q, z1.q }, p7, [sp, #-3, mul vl]
54 // CHECK-ENCODING: [0xff,0x1f,0x8f,0xe4]
55 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
56 // CHECK-UNKNOWN: e48f1fff <unknown>