[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / incb.s
blobd28e0aec45804cebacab2a2bbdf7a413986ef784
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \
6 // RUN: | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8 // RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10 incb x0
11 // CHECK-INST: incb x0
12 // CHECK-ENCODING: [0xe0,0xe3,0x30,0x04]
13 // CHECK-ERROR: instruction requires: sve
14 // CHECK-UNKNOWN: e0 e3 30 04 <unknown>
16 incb x0, all
17 // CHECK-INST: incb x0
18 // CHECK-ENCODING: [0xe0,0xe3,0x30,0x04]
19 // CHECK-ERROR: instruction requires: sve
20 // CHECK-UNKNOWN: e0 e3 30 04 <unknown>
22 incb x0, all, mul #1
23 // CHECK-INST: incb x0
24 // CHECK-ENCODING: [0xe0,0xe3,0x30,0x04]
25 // CHECK-ERROR: instruction requires: sve
26 // CHECK-UNKNOWN: e0 e3 30 04 <unknown>
28 incb x0, all, mul #16
29 // CHECK-INST: incb x0, all, mul #16
30 // CHECK-ENCODING: [0xe0,0xe3,0x3f,0x04]
31 // CHECK-ERROR: instruction requires: sve
32 // CHECK-UNKNOWN: e0 e3 3f 04 <unknown>
34 incb x0, pow2
35 // CHECK-INST: incb x0, pow2
36 // CHECK-ENCODING: [0x00,0xe0,0x30,0x04]
37 // CHECK-ERROR: instruction requires: sve
38 // CHECK-UNKNOWN: 00 e0 30 04 <unknown>
40 incb x0, vl1
41 // CHECK-INST: incb x0, vl1
42 // CHECK-ENCODING: [0x20,0xe0,0x30,0x04]
43 // CHECK-ERROR: instruction requires: sve
44 // CHECK-UNKNOWN: 20 e0 30 04 <unknown>
46 incb x0, vl2
47 // CHECK-INST: incb x0, vl2
48 // CHECK-ENCODING: [0x40,0xe0,0x30,0x04]
49 // CHECK-ERROR: instruction requires: sve
50 // CHECK-UNKNOWN: 40 e0 30 04 <unknown>
52 incb x0, vl3
53 // CHECK-INST: incb x0, vl3
54 // CHECK-ENCODING: [0x60,0xe0,0x30,0x04]
55 // CHECK-ERROR: instruction requires: sve
56 // CHECK-UNKNOWN: 60 e0 30 04 <unknown>
58 incb x0, vl4
59 // CHECK-INST: incb x0, vl4
60 // CHECK-ENCODING: [0x80,0xe0,0x30,0x04]
61 // CHECK-ERROR: instruction requires: sve
62 // CHECK-UNKNOWN: 80 e0 30 04 <unknown>
64 incb x0, vl5
65 // CHECK-INST: incb x0, vl5
66 // CHECK-ENCODING: [0xa0,0xe0,0x30,0x04]
67 // CHECK-ERROR: instruction requires: sve
68 // CHECK-UNKNOWN: a0 e0 30 04 <unknown>
70 incb x0, vl6
71 // CHECK-INST: incb x0, vl6
72 // CHECK-ENCODING: [0xc0,0xe0,0x30,0x04]
73 // CHECK-ERROR: instruction requires: sve
74 // CHECK-UNKNOWN: c0 e0 30 04 <unknown>
76 incb x0, vl7
77 // CHECK-INST: incb x0, vl7
78 // CHECK-ENCODING: [0xe0,0xe0,0x30,0x04]
79 // CHECK-ERROR: instruction requires: sve
80 // CHECK-UNKNOWN: e0 e0 30 04 <unknown>
82 incb x0, vl8
83 // CHECK-INST: incb x0, vl8
84 // CHECK-ENCODING: [0x00,0xe1,0x30,0x04]
85 // CHECK-ERROR: instruction requires: sve
86 // CHECK-UNKNOWN: 00 e1 30 04 <unknown>
88 incb x0, vl16
89 // CHECK-INST: incb x0, vl16
90 // CHECK-ENCODING: [0x20,0xe1,0x30,0x04]
91 // CHECK-ERROR: instruction requires: sve
92 // CHECK-UNKNOWN: 20 e1 30 04 <unknown>
94 incb x0, vl32
95 // CHECK-INST: incb x0, vl32
96 // CHECK-ENCODING: [0x40,0xe1,0x30,0x04]
97 // CHECK-ERROR: instruction requires: sve
98 // CHECK-UNKNOWN: 40 e1 30 04 <unknown>
100 incb x0, vl64
101 // CHECK-INST: incb x0, vl64
102 // CHECK-ENCODING: [0x60,0xe1,0x30,0x04]
103 // CHECK-ERROR: instruction requires: sve
104 // CHECK-UNKNOWN: 60 e1 30 04 <unknown>
106 incb x0, vl128
107 // CHECK-INST: incb x0, vl128
108 // CHECK-ENCODING: [0x80,0xe1,0x30,0x04]
109 // CHECK-ERROR: instruction requires: sve
110 // CHECK-UNKNOWN: 80 e1 30 04 <unknown>
112 incb x0, vl256
113 // CHECK-INST: incb x0, vl256
114 // CHECK-ENCODING: [0xa0,0xe1,0x30,0x04]
115 // CHECK-ERROR: instruction requires: sve
116 // CHECK-UNKNOWN: a0 e1 30 04 <unknown>
118 incb x0, #14
119 // CHECK-INST: incb x0, #14
120 // CHECK-ENCODING: [0xc0,0xe1,0x30,0x04]
121 // CHECK-ERROR: instruction requires: sve
122 // CHECK-UNKNOWN: c0 e1 30 04 <unknown>
124 incb x0, #15
125 // CHECK-INST: incb x0, #15
126 // CHECK-ENCODING: [0xe0,0xe1,0x30,0x04]
127 // CHECK-ERROR: instruction requires: sve
128 // CHECK-UNKNOWN: e0 e1 30 04 <unknown>
130 incb x0, #16
131 // CHECK-INST: incb x0, #16
132 // CHECK-ENCODING: [0x00,0xe2,0x30,0x04]
133 // CHECK-ERROR: instruction requires: sve
134 // CHECK-UNKNOWN: 00 e2 30 04 <unknown>
136 incb x0, #17
137 // CHECK-INST: incb x0, #17
138 // CHECK-ENCODING: [0x20,0xe2,0x30,0x04]
139 // CHECK-ERROR: instruction requires: sve
140 // CHECK-UNKNOWN: 20 e2 30 04 <unknown>
142 incb x0, #18
143 // CHECK-INST: incb x0, #18
144 // CHECK-ENCODING: [0x40,0xe2,0x30,0x04]
145 // CHECK-ERROR: instruction requires: sve
146 // CHECK-UNKNOWN: 40 e2 30 04 <unknown>
148 incb x0, #19
149 // CHECK-INST: incb x0, #19
150 // CHECK-ENCODING: [0x60,0xe2,0x30,0x04]
151 // CHECK-ERROR: instruction requires: sve
152 // CHECK-UNKNOWN: 60 e2 30 04 <unknown>
154 incb x0, #20
155 // CHECK-INST: incb x0, #20
156 // CHECK-ENCODING: [0x80,0xe2,0x30,0x04]
157 // CHECK-ERROR: instruction requires: sve
158 // CHECK-UNKNOWN: 80 e2 30 04 <unknown>
160 incb x0, #21
161 // CHECK-INST: incb x0, #21
162 // CHECK-ENCODING: [0xa0,0xe2,0x30,0x04]
163 // CHECK-ERROR: instruction requires: sve
164 // CHECK-UNKNOWN: a0 e2 30 04 <unknown>
166 incb x0, #22
167 // CHECK-INST: incb x0, #22
168 // CHECK-ENCODING: [0xc0,0xe2,0x30,0x04]
169 // CHECK-ERROR: instruction requires: sve
170 // CHECK-UNKNOWN: c0 e2 30 04 <unknown>
172 incb x0, #23
173 // CHECK-INST: incb x0, #23
174 // CHECK-ENCODING: [0xe0,0xe2,0x30,0x04]
175 // CHECK-ERROR: instruction requires: sve
176 // CHECK-UNKNOWN: e0 e2 30 04 <unknown>
178 incb x0, #24
179 // CHECK-INST: incb x0, #24
180 // CHECK-ENCODING: [0x00,0xe3,0x30,0x04]
181 // CHECK-ERROR: instruction requires: sve
182 // CHECK-UNKNOWN: 00 e3 30 04 <unknown>
184 incb x0, #25
185 // CHECK-INST: incb x0, #25
186 // CHECK-ENCODING: [0x20,0xe3,0x30,0x04]
187 // CHECK-ERROR: instruction requires: sve
188 // CHECK-UNKNOWN: 20 e3 30 04 <unknown>
190 incb x0, #26
191 // CHECK-INST: incb x0, #26
192 // CHECK-ENCODING: [0x40,0xe3,0x30,0x04]
193 // CHECK-ERROR: instruction requires: sve
194 // CHECK-UNKNOWN: 40 e3 30 04 <unknown>
196 incb x0, #27
197 // CHECK-INST: incb x0, #27
198 // CHECK-ENCODING: [0x60,0xe3,0x30,0x04]
199 // CHECK-ERROR: instruction requires: sve
200 // CHECK-UNKNOWN: 60 e3 30 04 <unknown>
202 incb x0, #28
203 // CHECK-INST: incb x0, #28
204 // CHECK-ENCODING: [0x80,0xe3,0x30,0x04]
205 // CHECK-ERROR: instruction requires: sve
206 // CHECK-UNKNOWN: 80 e3 30 04 <unknown>