Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / stnt1b.s
blobc96c3e4bc5f0152030d73c6564461695dda7836d
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %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=+sme2 < %s \
6 // RUN: | llvm-objdump -d --mattr=+sme2 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
8 // RUN: | llvm-objdump -d --mattr=-sme2 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
10 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \
12 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
15 stnt1b {z0.b, z8.b}, pn8, [x0, x0] // 10100001-00100000-00000000-00001000
16 // CHECK-INST: stnt1b { z0.b, z8.b }, pn8, [x0, x0]
17 // CHECK-ENCODING: [0x08,0x00,0x20,0xa1]
18 // CHECK-ERROR: instruction requires: sme2
19 // CHECK-UNKNOWN: a1200008 <unknown>
21 stnt1b {z21.b, z29.b}, pn13, [x10, x21] // 10100001-00110101-00010101-01011101
22 // CHECK-INST: stnt1b { z21.b, z29.b }, pn13, [x10, x21]
23 // CHECK-ENCODING: [0x5d,0x15,0x35,0xa1]
24 // CHECK-ERROR: instruction requires: sme2
25 // CHECK-UNKNOWN: a135155d <unknown>
27 stnt1b {z23.b, z31.b}, pn11, [x13, x8] // 10100001-00101000-00001101-10111111
28 // CHECK-INST: stnt1b { z23.b, z31.b }, pn11, [x13, x8]
29 // CHECK-ENCODING: [0xbf,0x0d,0x28,0xa1]
30 // CHECK-ERROR: instruction requires: sme2
31 // CHECK-UNKNOWN: a1280dbf <unknown>
33 stnt1b {z23.b, z31.b}, pn15, [sp, xzr] // 10100001-00111111-00011111-11111111
34 // CHECK-INST: stnt1b { z23.b, z31.b }, pn15, [sp, xzr]
35 // CHECK-ENCODING: [0xff,0x1f,0x3f,0xa1]
36 // CHECK-ERROR: instruction requires: sme2
37 // CHECK-UNKNOWN: a13f1fff <unknown>
40 stnt1b {z0.b, z8.b}, pn8, [x0] // 10100001-01100000-00000000-00001000
41 // CHECK-INST: stnt1b { z0.b, z8.b }, pn8, [x0]
42 // CHECK-ENCODING: [0x08,0x00,0x60,0xa1]
43 // CHECK-ERROR: instruction requires: sme2
44 // CHECK-UNKNOWN: a1600008 <unknown>
46 stnt1b {z21.b, z29.b}, pn13, [x10, #10, mul vl] // 10100001-01100101-00010101-01011101
47 // CHECK-INST: stnt1b { z21.b, z29.b }, pn13, [x10, #10, mul vl]
48 // CHECK-ENCODING: [0x5d,0x15,0x65,0xa1]
49 // CHECK-ERROR: instruction requires: sme2
50 // CHECK-UNKNOWN: a165155d <unknown>
52 stnt1b {z23.b, z31.b}, pn11, [x13, #-16, mul vl] // 10100001-01101000-00001101-10111111
53 // CHECK-INST: stnt1b { z23.b, z31.b }, pn11, [x13, #-16, mul vl]
54 // CHECK-ENCODING: [0xbf,0x0d,0x68,0xa1]
55 // CHECK-ERROR: instruction requires: sme2
56 // CHECK-UNKNOWN: a1680dbf <unknown>
58 stnt1b {z23.b, z31.b}, pn15, [sp, #-2, mul vl] // 10100001-01101111-00011111-11111111
59 // CHECK-INST: stnt1b { z23.b, z31.b }, pn15, [sp, #-2, mul vl]
60 // CHECK-ENCODING: [0xff,0x1f,0x6f,0xa1]
61 // CHECK-ERROR: instruction requires: sme2
62 // CHECK-UNKNOWN: a16f1fff <unknown>
65 stnt1b {z0.b, z4.b, z8.b, z12.b}, pn8, [x0, x0] // 10100001-00100000-10000000-00001000
66 // CHECK-INST: stnt1b { z0.b, z4.b, z8.b, z12.b }, pn8, [x0, x0]
67 // CHECK-ENCODING: [0x08,0x80,0x20,0xa1]
68 // CHECK-ERROR: instruction requires: sme2
69 // CHECK-UNKNOWN: a1208008 <unknown>
71 stnt1b {z17.b, z21.b, z25.b, z29.b}, pn13, [x10, x21] // 10100001-00110101-10010101-01011001
72 // CHECK-INST: stnt1b { z17.b, z21.b, z25.b, z29.b }, pn13, [x10, x21]
73 // CHECK-ENCODING: [0x59,0x95,0x35,0xa1]
74 // CHECK-ERROR: instruction requires: sme2
75 // CHECK-UNKNOWN: a1359559 <unknown>
77 stnt1b {z19.b, z23.b, z27.b, z31.b}, pn11, [x13, x8] // 10100001-00101000-10001101-10111011
78 // CHECK-INST: stnt1b { z19.b, z23.b, z27.b, z31.b }, pn11, [x13, x8]
79 // CHECK-ENCODING: [0xbb,0x8d,0x28,0xa1]
80 // CHECK-ERROR: instruction requires: sme2
81 // CHECK-UNKNOWN: a1288dbb <unknown>
83 stnt1b {z19.b, z23.b, z27.b, z31.b}, pn15, [sp, xzr] // 10100001-00111111-10011111-11111011
84 // CHECK-INST: stnt1b { z19.b, z23.b, z27.b, z31.b }, pn15, [sp, xzr]
85 // CHECK-ENCODING: [0xfb,0x9f,0x3f,0xa1]
86 // CHECK-ERROR: instruction requires: sme2
87 // CHECK-UNKNOWN: a13f9ffb <unknown>
90 stnt1b {z0.b, z4.b, z8.b, z12.b}, pn8, [x0] // 10100001-01100000-10000000-00001000
91 // CHECK-INST: stnt1b { z0.b, z4.b, z8.b, z12.b }, pn8, [x0]
92 // CHECK-ENCODING: [0x08,0x80,0x60,0xa1]
93 // CHECK-ERROR: instruction requires: sme2
94 // CHECK-UNKNOWN: a1608008 <unknown>
96 stnt1b {z17.b, z21.b, z25.b, z29.b}, pn13, [x10, #20, mul vl] // 10100001-01100101-10010101-01011001
97 // CHECK-INST: stnt1b { z17.b, z21.b, z25.b, z29.b }, pn13, [x10, #20, mul vl]
98 // CHECK-ENCODING: [0x59,0x95,0x65,0xa1]
99 // CHECK-ERROR: instruction requires: sme2
100 // CHECK-UNKNOWN: a1659559 <unknown>
102 stnt1b {z19.b, z23.b, z27.b, z31.b}, pn11, [x13, #-32, mul vl] // 10100001-01101000-10001101-10111011
103 // CHECK-INST: stnt1b { z19.b, z23.b, z27.b, z31.b }, pn11, [x13, #-32, mul vl]
104 // CHECK-ENCODING: [0xbb,0x8d,0x68,0xa1]
105 // CHECK-ERROR: instruction requires: sme2
106 // CHECK-UNKNOWN: a1688dbb <unknown>
108 stnt1b {z19.b, z23.b, z27.b, z31.b}, pn15, [sp, #-4, mul vl] // 10100001-01101111-10011111-11111011
109 // CHECK-INST: stnt1b { z19.b, z23.b, z27.b, z31.b }, pn15, [sp, #-4, mul vl]
110 // CHECK-ENCODING: [0xfb,0x9f,0x6f,0xa1]
111 // CHECK-ERROR: instruction requires: sme2
112 // CHECK-UNKNOWN: a16f9ffb <unknown>