Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / tbxq.s
blobb9a10a5dc24a989ab93b83309a3ccf729992527d
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
17 tbxq z0.h, z0.h, z0.h // 00000101-01100000-00110100-00000000
18 // CHECK-INST: tbxq z0.h, z0.h, z0.h
19 // CHECK-ENCODING: [0x00,0x34,0x60,0x05]
20 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
21 // CHECK-UNKNOWN: 05603400 <unknown>
23 tbxq z21.h, z10.h, z21.h // 00000101-01110101-00110101-01010101
24 // CHECK-INST: tbxq z21.h, z10.h, z21.h
25 // CHECK-ENCODING: [0x55,0x35,0x75,0x05]
26 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
27 // CHECK-UNKNOWN: 05753555 <unknown>
29 tbxq z23.h, z13.h, z8.h // 00000101-01101000-00110101-10110111
30 // CHECK-INST: tbxq z23.h, z13.h, z8.h
31 // CHECK-ENCODING: [0xb7,0x35,0x68,0x05]
32 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
33 // CHECK-UNKNOWN: 056835b7 <unknown>
35 tbxq z31.h, z31.h, z31.h // 00000101-01111111-00110111-11111111
36 // CHECK-INST: tbxq z31.h, z31.h, z31.h
37 // CHECK-ENCODING: [0xff,0x37,0x7f,0x05]
38 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
39 // CHECK-UNKNOWN: 057f37ff <unknown>
42 tbxq z0.s, z0.s, z0.s // 00000101-10100000-00110100-00000000
43 // CHECK-INST: tbxq z0.s, z0.s, z0.s
44 // CHECK-ENCODING: [0x00,0x34,0xa0,0x05]
45 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
46 // CHECK-UNKNOWN: 05a03400 <unknown>
48 tbxq z21.s, z10.s, z21.s // 00000101-10110101-00110101-01010101
49 // CHECK-INST: tbxq z21.s, z10.s, z21.s
50 // CHECK-ENCODING: [0x55,0x35,0xb5,0x05]
51 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
52 // CHECK-UNKNOWN: 05b53555 <unknown>
54 tbxq z23.s, z13.s, z8.s // 00000101-10101000-00110101-10110111
55 // CHECK-INST: tbxq z23.s, z13.s, z8.s
56 // CHECK-ENCODING: [0xb7,0x35,0xa8,0x05]
57 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
58 // CHECK-UNKNOWN: 05a835b7 <unknown>
60 tbxq z31.s, z31.s, z31.s // 00000101-10111111-00110111-11111111
61 // CHECK-INST: tbxq z31.s, z31.s, z31.s
62 // CHECK-ENCODING: [0xff,0x37,0xbf,0x05]
63 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
64 // CHECK-UNKNOWN: 05bf37ff <unknown>
67 tbxq z0.d, z0.d, z0.d // 00000101-11100000-00110100-00000000
68 // CHECK-INST: tbxq z0.d, z0.d, z0.d
69 // CHECK-ENCODING: [0x00,0x34,0xe0,0x05]
70 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
71 // CHECK-UNKNOWN: 05e03400 <unknown>
73 tbxq z21.d, z10.d, z21.d // 00000101-11110101-00110101-01010101
74 // CHECK-INST: tbxq z21.d, z10.d, z21.d
75 // CHECK-ENCODING: [0x55,0x35,0xf5,0x05]
76 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
77 // CHECK-UNKNOWN: 05f53555 <unknown>
79 tbxq z23.d, z13.d, z8.d // 00000101-11101000-00110101-10110111
80 // CHECK-INST: tbxq z23.d, z13.d, z8.d
81 // CHECK-ENCODING: [0xb7,0x35,0xe8,0x05]
82 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
83 // CHECK-UNKNOWN: 05e835b7 <unknown>
85 tbxq z31.d, z31.d, z31.d // 00000101-11111111-00110111-11111111
86 // CHECK-INST: tbxq z31.d, z31.d, z31.d
87 // CHECK-ENCODING: [0xff,0x37,0xff,0x05]
88 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
89 // CHECK-UNKNOWN: 05ff37ff <unknown>
92 tbxq z0.b, z0.b, z0.b // 00000101-00100000-00110100-00000000
93 // CHECK-INST: tbxq z0.b, z0.b, z0.b
94 // CHECK-ENCODING: [0x00,0x34,0x20,0x05]
95 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
96 // CHECK-UNKNOWN: 05203400 <unknown>
98 tbxq z21.b, z10.b, z21.b // 00000101-00110101-00110101-01010101
99 // CHECK-INST: tbxq z21.b, z10.b, z21.b
100 // CHECK-ENCODING: [0x55,0x35,0x35,0x05]
101 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
102 // CHECK-UNKNOWN: 05353555 <unknown>
104 tbxq z23.b, z13.b, z8.b // 00000101-00101000-00110101-10110111
105 // CHECK-INST: tbxq z23.b, z13.b, z8.b
106 // CHECK-ENCODING: [0xb7,0x35,0x28,0x05]
107 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
108 // CHECK-UNKNOWN: 052835b7 <unknown>
110 tbxq z31.b, z31.b, z31.b // 00000101-00111111-00110111-11111111
111 // CHECK-INST: tbxq z31.b, z31.b, z31.b
112 // CHECK-ENCODING: [0xff,0x37,0x3f,0x05]
113 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
114 // CHECK-UNKNOWN: 053f37ff <unknown>