Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / decw.s
blobf7b636d3898124b7171efb56da7f0cea0a41e45c
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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=+sve < %s \
8 // RUN: | llvm-objdump --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10 // RUN: | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 decw x0
13 // CHECK-INST: decw x0
14 // CHECK-ENCODING: [0xe0,0xe7,0xb0,0x04]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 04b0e7e0 <unknown>
18 decw x0, all
19 // CHECK-INST: decw x0
20 // CHECK-ENCODING: [0xe0,0xe7,0xb0,0x04]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 04b0e7e0 <unknown>
24 decw x0, all, mul #1
25 // CHECK-INST: decw x0
26 // CHECK-ENCODING: [0xe0,0xe7,0xb0,0x04]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: 04b0e7e0 <unknown>
30 decw x0, all, mul #16
31 // CHECK-INST: decw x0, all, mul #16
32 // CHECK-ENCODING: [0xe0,0xe7,0xbf,0x04]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: 04bfe7e0 <unknown>
36 decw x0, pow2
37 // CHECK-INST: decw x0, pow2
38 // CHECK-ENCODING: [0x00,0xe4,0xb0,0x04]
39 // CHECK-ERROR: instruction requires: sve or sme
40 // CHECK-UNKNOWN: 04b0e400 <unknown>
42 decw x0, vl1
43 // CHECK-INST: decw x0, vl1
44 // CHECK-ENCODING: [0x20,0xe4,0xb0,0x04]
45 // CHECK-ERROR: instruction requires: sve or sme
46 // CHECK-UNKNOWN: 04b0e420 <unknown>
48 decw x0, vl2
49 // CHECK-INST: decw x0, vl2
50 // CHECK-ENCODING: [0x40,0xe4,0xb0,0x04]
51 // CHECK-ERROR: instruction requires: sve or sme
52 // CHECK-UNKNOWN: 04b0e440 <unknown>
54 decw x0, vl3
55 // CHECK-INST: decw x0, vl3
56 // CHECK-ENCODING: [0x60,0xe4,0xb0,0x04]
57 // CHECK-ERROR: instruction requires: sve or sme
58 // CHECK-UNKNOWN: 04b0e460 <unknown>
60 decw x0, vl4
61 // CHECK-INST: decw x0, vl4
62 // CHECK-ENCODING: [0x80,0xe4,0xb0,0x04]
63 // CHECK-ERROR: instruction requires: sve or sme
64 // CHECK-UNKNOWN: 04b0e480 <unknown>
66 decw x0, vl5
67 // CHECK-INST: decw x0, vl5
68 // CHECK-ENCODING: [0xa0,0xe4,0xb0,0x04]
69 // CHECK-ERROR: instruction requires: sve or sme
70 // CHECK-UNKNOWN: 04b0e4a0 <unknown>
72 decw x0, vl6
73 // CHECK-INST: decw x0, vl6
74 // CHECK-ENCODING: [0xc0,0xe4,0xb0,0x04]
75 // CHECK-ERROR: instruction requires: sve or sme
76 // CHECK-UNKNOWN: 04b0e4c0 <unknown>
78 decw x0, vl7
79 // CHECK-INST: decw x0, vl7
80 // CHECK-ENCODING: [0xe0,0xe4,0xb0,0x04]
81 // CHECK-ERROR: instruction requires: sve or sme
82 // CHECK-UNKNOWN: 04b0e4e0 <unknown>
84 decw x0, vl8
85 // CHECK-INST: decw x0, vl8
86 // CHECK-ENCODING: [0x00,0xe5,0xb0,0x04]
87 // CHECK-ERROR: instruction requires: sve or sme
88 // CHECK-UNKNOWN: 04b0e500 <unknown>
90 decw x0, vl16
91 // CHECK-INST: decw x0, vl16
92 // CHECK-ENCODING: [0x20,0xe5,0xb0,0x04]
93 // CHECK-ERROR: instruction requires: sve or sme
94 // CHECK-UNKNOWN: 04b0e520 <unknown>
96 decw x0, vl32
97 // CHECK-INST: decw x0, vl32
98 // CHECK-ENCODING: [0x40,0xe5,0xb0,0x04]
99 // CHECK-ERROR: instruction requires: sve or sme
100 // CHECK-UNKNOWN: 04b0e540 <unknown>
102 decw x0, vl64
103 // CHECK-INST: decw x0, vl64
104 // CHECK-ENCODING: [0x60,0xe5,0xb0,0x04]
105 // CHECK-ERROR: instruction requires: sve or sme
106 // CHECK-UNKNOWN: 04b0e560 <unknown>
108 decw x0, vl128
109 // CHECK-INST: decw x0, vl128
110 // CHECK-ENCODING: [0x80,0xe5,0xb0,0x04]
111 // CHECK-ERROR: instruction requires: sve or sme
112 // CHECK-UNKNOWN: 04b0e580 <unknown>
114 decw x0, vl256
115 // CHECK-INST: decw x0, vl256
116 // CHECK-ENCODING: [0xa0,0xe5,0xb0,0x04]
117 // CHECK-ERROR: instruction requires: sve or sme
118 // CHECK-UNKNOWN: 04b0e5a0 <unknown>
120 decw x0, #14
121 // CHECK-INST: decw x0, #14
122 // CHECK-ENCODING: [0xc0,0xe5,0xb0,0x04]
123 // CHECK-ERROR: instruction requires: sve or sme
124 // CHECK-UNKNOWN: 04b0e5c0 <unknown>
126 decw x0, #28
127 // CHECK-INST: decw x0, #28
128 // CHECK-ENCODING: [0x80,0xe7,0xb0,0x04]
129 // CHECK-ERROR: instruction requires: sve or sme
130 // CHECK-UNKNOWN: 04b0e780 <unknown>