Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / stnt1h.s
blobeec154a95701aed96a90b2d20ad3481eb8f58c84
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 stnt1h {z0.h, z8.h}, pn8, [x0, x0, lsl #1] // 10100001-00100000-00100000-00001000
16 // CHECK-INST: stnt1h { z0.h, z8.h }, pn8, [x0, x0, lsl #1]
17 // CHECK-ENCODING: [0x08,0x20,0x20,0xa1]
18 // CHECK-ERROR: instruction requires: sme2
19 // CHECK-UNKNOWN: a1202008 <unknown>
21 stnt1h {z21.h, z29.h}, pn13, [x10, x21, lsl #1] // 10100001-00110101-00110101-01011101
22 // CHECK-INST: stnt1h { z21.h, z29.h }, pn13, [x10, x21, lsl #1]
23 // CHECK-ENCODING: [0x5d,0x35,0x35,0xa1]
24 // CHECK-ERROR: instruction requires: sme2
25 // CHECK-UNKNOWN: a135355d <unknown>
27 stnt1h {z23.h, z31.h}, pn11, [x13, x8, lsl #1] // 10100001-00101000-00101101-10111111
28 // CHECK-INST: stnt1h { z23.h, z31.h }, pn11, [x13, x8, lsl #1]
29 // CHECK-ENCODING: [0xbf,0x2d,0x28,0xa1]
30 // CHECK-ERROR: instruction requires: sme2
31 // CHECK-UNKNOWN: a1282dbf <unknown>
33 stnt1h {z23.h, z31.h}, pn15, [sp, xzr, lsl #1] // 10100001-00111111-00111111-11111111
34 // CHECK-INST: stnt1h { z23.h, z31.h }, pn15, [sp, xzr, lsl #1]
35 // CHECK-ENCODING: [0xff,0x3f,0x3f,0xa1]
36 // CHECK-ERROR: instruction requires: sme2
37 // CHECK-UNKNOWN: a13f3fff <unknown>
40 stnt1h {z0.h, z8.h}, pn8, [x0] // 10100001-01100000-00100000-00001000
41 // CHECK-INST: stnt1h { z0.h, z8.h }, pn8, [x0]
42 // CHECK-ENCODING: [0x08,0x20,0x60,0xa1]
43 // CHECK-ERROR: instruction requires: sme2
44 // CHECK-UNKNOWN: a1602008 <unknown>
46 stnt1h {z21.h, z29.h}, pn13, [x10, #10, mul vl] // 10100001-01100101-00110101-01011101
47 // CHECK-INST: stnt1h { z21.h, z29.h }, pn13, [x10, #10, mul vl]
48 // CHECK-ENCODING: [0x5d,0x35,0x65,0xa1]
49 // CHECK-ERROR: instruction requires: sme2
50 // CHECK-UNKNOWN: a165355d <unknown>
52 stnt1h {z23.h, z31.h}, pn11, [x13, #-16, mul vl] // 10100001-01101000-00101101-10111111
53 // CHECK-INST: stnt1h { z23.h, z31.h }, pn11, [x13, #-16, mul vl]
54 // CHECK-ENCODING: [0xbf,0x2d,0x68,0xa1]
55 // CHECK-ERROR: instruction requires: sme2
56 // CHECK-UNKNOWN: a1682dbf <unknown>
58 stnt1h {z23.h, z31.h}, pn15, [sp, #-2, mul vl] // 10100001-01101111-00111111-11111111
59 // CHECK-INST: stnt1h { z23.h, z31.h }, pn15, [sp, #-2, mul vl]
60 // CHECK-ENCODING: [0xff,0x3f,0x6f,0xa1]
61 // CHECK-ERROR: instruction requires: sme2
62 // CHECK-UNKNOWN: a16f3fff <unknown>
65 stnt1h {z0.h, z4.h, z8.h, z12.h}, pn8, [x0, x0, lsl #1] // 10100001-00100000-10100000-00001000
66 // CHECK-INST: stnt1h { z0.h, z4.h, z8.h, z12.h }, pn8, [x0, x0, lsl #1]
67 // CHECK-ENCODING: [0x08,0xa0,0x20,0xa1]
68 // CHECK-ERROR: instruction requires: sme2
69 // CHECK-UNKNOWN: a120a008 <unknown>
71 stnt1h {z17.h, z21.h, z25.h, z29.h}, pn13, [x10, x21, lsl #1] // 10100001-00110101-10110101-01011001
72 // CHECK-INST: stnt1h { z17.h, z21.h, z25.h, z29.h }, pn13, [x10, x21, lsl #1]
73 // CHECK-ENCODING: [0x59,0xb5,0x35,0xa1]
74 // CHECK-ERROR: instruction requires: sme2
75 // CHECK-UNKNOWN: a135b559 <unknown>
77 stnt1h {z19.h, z23.h, z27.h, z31.h}, pn11, [x13, x8, lsl #1] // 10100001-00101000-10101101-10111011
78 // CHECK-INST: stnt1h { z19.h, z23.h, z27.h, z31.h }, pn11, [x13, x8, lsl #1]
79 // CHECK-ENCODING: [0xbb,0xad,0x28,0xa1]
80 // CHECK-ERROR: instruction requires: sme2
81 // CHECK-UNKNOWN: a128adbb <unknown>
83 stnt1h {z19.h, z23.h, z27.h, z31.h}, pn15, [sp, xzr, lsl #1] // 10100001-00111111-10111111-11111011
84 // CHECK-INST: stnt1h { z19.h, z23.h, z27.h, z31.h }, pn15, [sp, xzr, lsl #1]
85 // CHECK-ENCODING: [0xfb,0xbf,0x3f,0xa1]
86 // CHECK-ERROR: instruction requires: sme2
87 // CHECK-UNKNOWN: a13fbffb <unknown>
90 stnt1h {z0.h, z4.h, z8.h, z12.h}, pn8, [x0] // 10100001-01100000-10100000-00001000
91 // CHECK-INST: stnt1h { z0.h, z4.h, z8.h, z12.h }, pn8, [x0]
92 // CHECK-ENCODING: [0x08,0xa0,0x60,0xa1]
93 // CHECK-ERROR: instruction requires: sme2
94 // CHECK-UNKNOWN: a160a008 <unknown>
96 stnt1h {z17.h, z21.h, z25.h, z29.h}, pn13, [x10, #20, mul vl] // 10100001-01100101-10110101-01011001
97 // CHECK-INST: stnt1h { z17.h, z21.h, z25.h, z29.h }, pn13, [x10, #20, mul vl]
98 // CHECK-ENCODING: [0x59,0xb5,0x65,0xa1]
99 // CHECK-ERROR: instruction requires: sme2
100 // CHECK-UNKNOWN: a165b559 <unknown>
102 stnt1h {z19.h, z23.h, z27.h, z31.h}, pn11, [x13, #-32, mul vl] // 10100001-01101000-10101101-10111011
103 // CHECK-INST: stnt1h { z19.h, z23.h, z27.h, z31.h }, pn11, [x13, #-32, mul vl]
104 // CHECK-ENCODING: [0xbb,0xad,0x68,0xa1]
105 // CHECK-ERROR: instruction requires: sme2
106 // CHECK-UNKNOWN: a168adbb <unknown>
108 stnt1h {z19.h, z23.h, z27.h, z31.h}, pn15, [sp, #-4, mul vl] // 10100001-01101111-10111111-11111011
109 // CHECK-INST: stnt1h { z19.h, z23.h, z27.h, z31.h }, pn15, [sp, #-4, mul vl]
110 // CHECK-ENCODING: [0xfb,0xbf,0x6f,0xa1]
111 // CHECK-ERROR: instruction requires: sme2
112 // CHECK-UNKNOWN: a16fbffb <unknown>