Make test more lenient for custom clang version strings
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / st1d.s
blob2d6002d6106a25f2815e249797caaa7726d1e57d
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 st1d {z0.d, z8.d}, pn8, [x0, x0, lsl #3] // 10100001-00100000-01100000-00000000
16 // CHECK-INST: st1d { z0.d, z8.d }, pn8, [x0, x0, lsl #3]
17 // CHECK-ENCODING: [0x00,0x60,0x20,0xa1]
18 // CHECK-ERROR: instruction requires: sme2
19 // CHECK-UNKNOWN: a1206000 <unknown>
21 st1d {z21.d, z29.d}, pn13, [x10, x21, lsl #3] // 10100001-00110101-01110101-01010101
22 // CHECK-INST: st1d { z21.d, z29.d }, pn13, [x10, x21, lsl #3]
23 // CHECK-ENCODING: [0x55,0x75,0x35,0xa1]
24 // CHECK-ERROR: instruction requires: sme2
25 // CHECK-UNKNOWN: a1357555 <unknown>
27 st1d {z23.d, z31.d}, pn11, [x13, x8, lsl #3] // 10100001-00101000-01101101-10110111
28 // CHECK-INST: st1d { z23.d, z31.d }, pn11, [x13, x8, lsl #3]
29 // CHECK-ENCODING: [0xb7,0x6d,0x28,0xa1]
30 // CHECK-ERROR: instruction requires: sme2
31 // CHECK-UNKNOWN: a1286db7 <unknown>
33 st1d {z23.d, z31.d}, pn15, [sp, xzr, lsl #3] // 10100001-00111111-01111111-11110111
34 // CHECK-INST: st1d { z23.d, z31.d }, pn15, [sp, xzr, lsl #3]
35 // CHECK-ENCODING: [0xf7,0x7f,0x3f,0xa1]
36 // CHECK-ERROR: instruction requires: sme2
37 // CHECK-UNKNOWN: a13f7ff7 <unknown>
40 st1d {z0.d, z8.d}, pn8, [x0] // 10100001-01100000-01100000-00000000
41 // CHECK-INST: st1d { z0.d, z8.d }, pn8, [x0]
42 // CHECK-ENCODING: [0x00,0x60,0x60,0xa1]
43 // CHECK-ERROR: instruction requires: sme2
44 // CHECK-UNKNOWN: a1606000 <unknown>
46 st1d {z21.d, z29.d}, pn13, [x10, #10, mul vl] // 10100001-01100101-01110101-01010101
47 // CHECK-INST: st1d { z21.d, z29.d }, pn13, [x10, #10, mul vl]
48 // CHECK-ENCODING: [0x55,0x75,0x65,0xa1]
49 // CHECK-ERROR: instruction requires: sme2
50 // CHECK-UNKNOWN: a1657555 <unknown>
52 st1d {z23.d, z31.d}, pn11, [x13, #-16, mul vl] // 10100001-01101000-01101101-10110111
53 // CHECK-INST: st1d { z23.d, z31.d }, pn11, [x13, #-16, mul vl]
54 // CHECK-ENCODING: [0xb7,0x6d,0x68,0xa1]
55 // CHECK-ERROR: instruction requires: sme2
56 // CHECK-UNKNOWN: a1686db7 <unknown>
58 st1d {z23.d, z31.d}, pn15, [sp, #-2, mul vl] // 10100001-01101111-01111111-11110111
59 // CHECK-INST: st1d { z23.d, z31.d }, pn15, [sp, #-2, mul vl]
60 // CHECK-ENCODING: [0xf7,0x7f,0x6f,0xa1]
61 // CHECK-ERROR: instruction requires: sme2
62 // CHECK-UNKNOWN: a16f7ff7 <unknown>
65 st1d {z0.d, z4.d, z8.d, z12.d}, pn8, [x0, x0, lsl #3] // 10100001-00100000-11100000-00000000
66 // CHECK-INST: st1d { z0.d, z4.d, z8.d, z12.d }, pn8, [x0, x0, lsl #3]
67 // CHECK-ENCODING: [0x00,0xe0,0x20,0xa1]
68 // CHECK-ERROR: instruction requires: sme2
69 // CHECK-UNKNOWN: a120e000 <unknown>
71 st1d {z17.d, z21.d, z25.d, z29.d}, pn13, [x10, x21, lsl #3] // 10100001-00110101-11110101-01010001
72 // CHECK-INST: st1d { z17.d, z21.d, z25.d, z29.d }, pn13, [x10, x21, lsl #3]
73 // CHECK-ENCODING: [0x51,0xf5,0x35,0xa1]
74 // CHECK-ERROR: instruction requires: sme2
75 // CHECK-UNKNOWN: a135f551 <unknown>
77 st1d {z19.d, z23.d, z27.d, z31.d}, pn11, [x13, x8, lsl #3] // 10100001-00101000-11101101-10110011
78 // CHECK-INST: st1d { z19.d, z23.d, z27.d, z31.d }, pn11, [x13, x8, lsl #3]
79 // CHECK-ENCODING: [0xb3,0xed,0x28,0xa1]
80 // CHECK-ERROR: instruction requires: sme2
81 // CHECK-UNKNOWN: a128edb3 <unknown>
83 st1d {z19.d, z23.d, z27.d, z31.d}, pn15, [sp, xzr, lsl #3] // 10100001-00111111-11111111-11110011
84 // CHECK-INST: st1d { z19.d, z23.d, z27.d, z31.d }, pn15, [sp, xzr, lsl #3]
85 // CHECK-ENCODING: [0xf3,0xff,0x3f,0xa1]
86 // CHECK-ERROR: instruction requires: sme2
87 // CHECK-UNKNOWN: a13ffff3 <unknown>
90 st1d {z0.d, z4.d, z8.d, z12.d}, pn8, [x0] // 10100001-01100000-11100000-00000000
91 // CHECK-INST: st1d { z0.d, z4.d, z8.d, z12.d }, pn8, [x0]
92 // CHECK-ENCODING: [0x00,0xe0,0x60,0xa1]
93 // CHECK-ERROR: instruction requires: sme2
94 // CHECK-UNKNOWN: a160e000 <unknown>
96 st1d {z17.d, z21.d, z25.d, z29.d}, pn13, [x10, #20, mul vl] // 10100001-01100101-11110101-01010001
97 // CHECK-INST: st1d { z17.d, z21.d, z25.d, z29.d }, pn13, [x10, #20, mul vl]
98 // CHECK-ENCODING: [0x51,0xf5,0x65,0xa1]
99 // CHECK-ERROR: instruction requires: sme2
100 // CHECK-UNKNOWN: a165f551 <unknown>
102 st1d {z19.d, z23.d, z27.d, z31.d}, pn11, [x13, #-32, mul vl] // 10100001-01101000-11101101-10110011
103 // CHECK-INST: st1d { z19.d, z23.d, z27.d, z31.d }, pn11, [x13, #-32, mul vl]
104 // CHECK-ENCODING: [0xb3,0xed,0x68,0xa1]
105 // CHECK-ERROR: instruction requires: sme2
106 // CHECK-UNKNOWN: a168edb3 <unknown>
108 st1d {z19.d, z23.d, z27.d, z31.d}, pn15, [sp, #-4, mul vl] // 10100001-01101111-11111111-11110011
109 // CHECK-INST: st1d { z19.d, z23.d, z27.d, z31.d }, pn15, [sp, #-4, mul vl]
110 // CHECK-ENCODING: [0xf3,0xff,0x6f,0xa1]
111 // CHECK-ERROR: instruction requires: sme2
112 // CHECK-UNKNOWN: a16ffff3 <unknown>