[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / Sparc / sparc-v9-traps.s
blobda11b36003bde752876db7272fab76e4a7ba40f3
1 ! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s
3 ! CHECK: ta %icc, %i5 ! encoding: [0x91,0xd0,0x00,0x1d]
4 ! CHECK: ta %icc, 82 ! encoding: [0x91,0xd0,0x20,0x52]
5 ! CHECK: ta %icc, %g1 + %i2 ! encoding: [0x91,0xd0,0x40,0x1a]
6 ! CHECK: ta %icc, %i5 + 41 ! encoding: [0x91,0xd7,0x60,0x29]
7 ta %icc, %i5
8 ta %icc, 82
9 ta %icc, %g1 + %i2
10 ta %icc, %i5 + 41
12 ! CHECK: tn %icc, %i5 ! encoding: [0x81,0xd0,0x00,0x1d]
13 ! CHECK: tn %icc, 82 ! encoding: [0x81,0xd0,0x20,0x52]
14 ! CHECK: tn %icc, %g1 + %i2 ! encoding: [0x81,0xd0,0x40,0x1a]
15 ! CHECK: tn %icc, %i5 + 41 ! encoding: [0x81,0xd7,0x60,0x29]
16 tn %icc, %i5
17 tn %icc, 82
18 tn %icc, %g1 + %i2
19 tn %icc, %i5 + 41
21 ! CHECK: tne %icc, %i5 ! encoding: [0x93,0xd0,0x00,0x1d]
22 !! tnz should be a synonym for tne
23 ! CHECK: tne %icc, %i5 ! encoding: [0x93,0xd0,0x00,0x1d]
24 ! CHECK: tne %icc, 82 ! encoding: [0x93,0xd0,0x20,0x52]
25 ! CHECK: tne %icc, %g1 + %i2 ! encoding: [0x93,0xd0,0x40,0x1a]
26 ! CHECK: tne %icc, %i5 + 41 ! encoding: [0x93,0xd7,0x60,0x29]
27 tne %icc, %i5
28 tnz %icc, %i5
29 tne %icc, 82
30 tne %icc, %g1 + %i2
31 tne %icc, %i5 + 41
33 ! CHECK: te %icc, %i5 ! encoding: [0x83,0xd0,0x00,0x1d]
34 !! tz should be a synonym for te
35 ! CHECK: te %icc, %i5 ! encoding: [0x83,0xd0,0x00,0x1d]
36 ! CHECK: te %icc, 82 ! encoding: [0x83,0xd0,0x20,0x52]
37 ! CHECK: te %icc, %g1 + %i2 ! encoding: [0x83,0xd0,0x40,0x1a]
38 ! CHECK: te %icc, %i5 + 41 ! encoding: [0x83,0xd7,0x60,0x29]
39 te %icc, %i5
40 tz %icc, %i5
41 te %icc, 82
42 te %icc, %g1 + %i2
43 te %icc, %i5 + 41
45 ! CHECK: tg %icc, %i5 ! encoding: [0x95,0xd0,0x00,0x1d]
46 ! CHECK: tg %icc, 82 ! encoding: [0x95,0xd0,0x20,0x52]
47 ! CHECK: tg %icc, %g1 + %i2 ! encoding: [0x95,0xd0,0x40,0x1a]
48 ! CHECK: tg %icc, %i5 + 41 ! encoding: [0x95,0xd7,0x60,0x29]
49 tg %icc, %i5
50 tg %icc, 82
51 tg %icc, %g1 + %i2
52 tg %icc, %i5 + 41
54 ! CHECK: tle %icc, %i5 ! encoding: [0x85,0xd0,0x00,0x1d]
55 ! CHECK: tle %icc, 82 ! encoding: [0x85,0xd0,0x20,0x52]
56 ! CHECK: tle %icc, %g1 + %i2 ! encoding: [0x85,0xd0,0x40,0x1a]
57 ! CHECK: tle %icc, %i5 + 41 ! encoding: [0x85,0xd7,0x60,0x29]
58 tle %icc, %i5
59 tle %icc, 82
60 tle %icc, %g1 + %i2
61 tle %icc, %i5 + 41
63 ! CHECK: tge %icc, %i5 ! encoding: [0x97,0xd0,0x00,0x1d]
64 ! CHECK: tge %icc, 82 ! encoding: [0x97,0xd0,0x20,0x52]
65 ! CHECK: tge %icc, %g1 + %i2 ! encoding: [0x97,0xd0,0x40,0x1a]
66 ! CHECK: tge %icc, %i5 + 41 ! encoding: [0x97,0xd7,0x60,0x29]
67 tge %icc, %i5
68 tge %icc, 82
69 tge %icc, %g1 + %i2
70 tge %icc, %i5 + 41
72 ! CHECK: tl %icc, %i5 ! encoding: [0x87,0xd0,0x00,0x1d]
73 ! CHECK: tl %icc, 82 ! encoding: [0x87,0xd0,0x20,0x52]
74 ! CHECK: tl %icc, %g1 + %i2 ! encoding: [0x87,0xd0,0x40,0x1a]
75 ! CHECK: tl %icc, %i5 + 41 ! encoding: [0x87,0xd7,0x60,0x29]
76 tl %icc, %i5
77 tl %icc, 82
78 tl %icc, %g1 + %i2
79 tl %icc, %i5 + 41
81 ! CHECK: tgu %icc, %i5 ! encoding: [0x99,0xd0,0x00,0x1d]
82 ! CHECK: tgu %icc, 82 ! encoding: [0x99,0xd0,0x20,0x52]
83 ! CHECK: tgu %icc, %g1 + %i2 ! encoding: [0x99,0xd0,0x40,0x1a]
84 ! CHECK: tgu %icc, %i5 + 41 ! encoding: [0x99,0xd7,0x60,0x29]
85 tgu %icc, %i5
86 tgu %icc, 82
87 tgu %icc, %g1 + %i2
88 tgu %icc, %i5 + 41
90 ! CHECK: tleu %icc, %i5 ! encoding: [0x89,0xd0,0x00,0x1d]
91 ! CHECK: tleu %icc, 82 ! encoding: [0x89,0xd0,0x20,0x52]
92 ! CHECK: tleu %icc, %g1 + %i2 ! encoding: [0x89,0xd0,0x40,0x1a]
93 ! CHECK: tleu %icc, %i5 + 41 ! encoding: [0x89,0xd7,0x60,0x29]
94 tleu %icc, %i5
95 tleu %icc, 82
96 tleu %icc, %g1 + %i2
97 tleu %icc, %i5 + 41
99 ! CHECK: tcc %icc, %i5 ! encoding: [0x9b,0xd0,0x00,0x1d]
100 ! CHECK: tcc %icc, 82 ! encoding: [0x9b,0xd0,0x20,0x52]
101 ! CHECK: tcc %icc, %g1 + %i2 ! encoding: [0x9b,0xd0,0x40,0x1a]
102 ! CHECK: tcc %icc, %i5 + 41 ! encoding: [0x9b,0xd7,0x60,0x29]
103 tcc %icc, %i5
104 tcc %icc, 82
105 tcc %icc, %g1 + %i2
106 tcc %icc, %i5 + 41
108 ! CHECK: tcs %icc, %i5 ! encoding: [0x8b,0xd0,0x00,0x1d]
109 ! CHECK: tcs %icc, 82 ! encoding: [0x8b,0xd0,0x20,0x52]
110 ! CHECK: tcs %icc, %g1 + %i2 ! encoding: [0x8b,0xd0,0x40,0x1a]
111 ! CHECK: tcs %icc, %i5 + 41 ! encoding: [0x8b,0xd7,0x60,0x29]
112 tcs %icc, %i5
113 tcs %icc, 82
114 tcs %icc, %g1 + %i2
115 tcs %icc, %i5 + 41
117 ! CHECK: tpos %icc, %i5 ! encoding: [0x9d,0xd0,0x00,0x1d]
118 ! CHECK: tpos %icc, 82 ! encoding: [0x9d,0xd0,0x20,0x52]
119 ! CHECK: tpos %icc, %g1 + %i2 ! encoding: [0x9d,0xd0,0x40,0x1a]
120 ! CHECK: tpos %icc, %i5 + 41 ! encoding: [0x9d,0xd7,0x60,0x29]
121 tpos %icc, %i5
122 tpos %icc, 82
123 tpos %icc, %g1 + %i2
124 tpos %icc, %i5 + 41
126 ! CHECK: tneg %icc, %i5 ! encoding: [0x8d,0xd0,0x00,0x1d]
127 ! CHECK: tneg %icc, 82 ! encoding: [0x8d,0xd0,0x20,0x52]
128 ! CHECK: tneg %icc, %g1 + %i2 ! encoding: [0x8d,0xd0,0x40,0x1a]
129 ! CHECK: tneg %icc, %i5 + 41 ! encoding: [0x8d,0xd7,0x60,0x29]
130 tneg %icc, %i5
131 tneg %icc, 82
132 tneg %icc, %g1 + %i2
133 tneg %icc, %i5 + 41
135 ! CHECK: tvc %icc, %i5 ! encoding: [0x9f,0xd0,0x00,0x1d]
136 ! CHECK: tvc %icc, 82 ! encoding: [0x9f,0xd0,0x20,0x52]
137 ! CHECK: tvc %icc, %g1 + %i2 ! encoding: [0x9f,0xd0,0x40,0x1a]
138 ! CHECK: tvc %icc, %i5 + 41 ! encoding: [0x9f,0xd7,0x60,0x29]
139 tvc %icc, %i5
140 tvc %icc, 82
141 tvc %icc, %g1 + %i2
142 tvc %icc, %i5 + 41
144 ! CHECK: tvs %icc, %i5 ! encoding: [0x8f,0xd0,0x00,0x1d]
145 ! CHECK: tvs %icc, 82 ! encoding: [0x8f,0xd0,0x20,0x52]
146 ! CHECK: tvs %icc, %g1 + %i2 ! encoding: [0x8f,0xd0,0x40,0x1a]
147 ! CHECK: tvs %icc, %i5 + 41 ! encoding: [0x8f,0xd7,0x60,0x29]
148 tvs %icc, %i5
149 tvs %icc, 82
150 tvs %icc, %g1 + %i2
151 tvs %icc, %i5 + 41
154 ! CHECK: ta %xcc, %i5 ! encoding: [0x91,0xd0,0x10,0x1d]
155 ! CHECK: ta %xcc, 82 ! encoding: [0x91,0xd0,0x30,0x52]
156 ! CHECK: ta %xcc, %g1 + %i2 ! encoding: [0x91,0xd0,0x50,0x1a]
157 ! CHECK: ta %xcc, %i5 + 41 ! encoding: [0x91,0xd7,0x70,0x29]
158 ta %xcc, %i5
159 ta %xcc, 82
160 ta %xcc, %g1 + %i2
161 ta %xcc, %i5 + 41
163 ! CHECK: tn %xcc, %i5 ! encoding: [0x81,0xd0,0x10,0x1d]
164 ! CHECK: tn %xcc, 82 ! encoding: [0x81,0xd0,0x30,0x52]
165 ! CHECK: tn %xcc, %g1 + %i2 ! encoding: [0x81,0xd0,0x50,0x1a]
166 ! CHECK: tn %xcc, %i5 + 41 ! encoding: [0x81,0xd7,0x70,0x29]
167 tn %xcc, %i5
168 tn %xcc, 82
169 tn %xcc, %g1 + %i2
170 tn %xcc, %i5 + 41
172 ! CHECK: tne %xcc, %i5 ! encoding: [0x93,0xd0,0x10,0x1d]
173 !! tnz should be a synonym for tne
174 ! CHECK: tne %xcc, %i5 ! encoding: [0x93,0xd0,0x10,0x1d]
175 ! CHECK: tne %xcc, 82 ! encoding: [0x93,0xd0,0x30,0x52]
176 ! CHECK: tne %xcc, %g1 + %i2 ! encoding: [0x93,0xd0,0x50,0x1a]
177 ! CHECK: tne %xcc, %i5 + 41 ! encoding: [0x93,0xd7,0x70,0x29]
178 tne %xcc, %i5
179 tnz %xcc, %i5
180 tne %xcc, 82
181 tne %xcc, %g1 + %i2
182 tne %xcc, %i5 + 41
184 ! CHECK: te %xcc, %i5 ! encoding: [0x83,0xd0,0x10,0x1d]
185 !! tz should be a synonym for te
186 ! CHECK: te %xcc, %i5 ! encoding: [0x83,0xd0,0x10,0x1d]
187 ! CHECK: te %xcc, 82 ! encoding: [0x83,0xd0,0x30,0x52]
188 ! CHECK: te %xcc, %g1 + %i2 ! encoding: [0x83,0xd0,0x50,0x1a]
189 ! CHECK: te %xcc, %i5 + 41 ! encoding: [0x83,0xd7,0x70,0x29]
190 te %xcc, %i5
191 tz %xcc, %i5
192 te %xcc, 82
193 te %xcc, %g1 + %i2
194 te %xcc, %i5 + 41
196 ! CHECK: tg %xcc, %i5 ! encoding: [0x95,0xd0,0x10,0x1d]
197 ! CHECK: tg %xcc, 82 ! encoding: [0x95,0xd0,0x30,0x52]
198 ! CHECK: tg %xcc, %g1 + %i2 ! encoding: [0x95,0xd0,0x50,0x1a]
199 ! CHECK: tg %xcc, %i5 + 41 ! encoding: [0x95,0xd7,0x70,0x29]
200 tg %xcc, %i5
201 tg %xcc, 82
202 tg %xcc, %g1 + %i2
203 tg %xcc, %i5 + 41
205 ! CHECK: tle %xcc, %i5 ! encoding: [0x85,0xd0,0x10,0x1d]
206 ! CHECK: tle %xcc, 82 ! encoding: [0x85,0xd0,0x30,0x52]
207 ! CHECK: tle %xcc, %g1 + %i2 ! encoding: [0x85,0xd0,0x50,0x1a]
208 ! CHECK: tle %xcc, %i5 + 41 ! encoding: [0x85,0xd7,0x70,0x29]
209 tle %xcc, %i5
210 tle %xcc, 82
211 tle %xcc, %g1 + %i2
212 tle %xcc, %i5 + 41
214 ! CHECK: tge %xcc, %i5 ! encoding: [0x97,0xd0,0x10,0x1d]
215 ! CHECK: tge %xcc, 82 ! encoding: [0x97,0xd0,0x30,0x52]
216 ! CHECK: tge %xcc, %g1 + %i2 ! encoding: [0x97,0xd0,0x50,0x1a]
217 ! CHECK: tge %xcc, %i5 + 41 ! encoding: [0x97,0xd7,0x70,0x29]
218 tge %xcc, %i5
219 tge %xcc, 82
220 tge %xcc, %g1 + %i2
221 tge %xcc, %i5 + 41
223 ! CHECK: tl %xcc, %i5 ! encoding: [0x87,0xd0,0x10,0x1d]
224 ! CHECK: tl %xcc, 82 ! encoding: [0x87,0xd0,0x30,0x52]
225 ! CHECK: tl %xcc, %g1 + %i2 ! encoding: [0x87,0xd0,0x50,0x1a]
226 ! CHECK: tl %xcc, %i5 + 41 ! encoding: [0x87,0xd7,0x70,0x29]
227 tl %xcc, %i5
228 tl %xcc, 82
229 tl %xcc, %g1 + %i2
230 tl %xcc, %i5 + 41
232 ! CHECK: tgu %xcc, %i5 ! encoding: [0x99,0xd0,0x10,0x1d]
233 ! CHECK: tgu %xcc, 82 ! encoding: [0x99,0xd0,0x30,0x52]
234 ! CHECK: tgu %xcc, %g1 + %i2 ! encoding: [0x99,0xd0,0x50,0x1a]
235 ! CHECK: tgu %xcc, %i5 + 41 ! encoding: [0x99,0xd7,0x70,0x29]
236 tgu %xcc, %i5
237 tgu %xcc, 82
238 tgu %xcc, %g1 + %i2
239 tgu %xcc, %i5 + 41
241 ! CHECK: tleu %xcc, %i5 ! encoding: [0x89,0xd0,0x10,0x1d]
242 ! CHECK: tleu %xcc, 82 ! encoding: [0x89,0xd0,0x30,0x52]
243 ! CHECK: tleu %xcc, %g1 + %i2 ! encoding: [0x89,0xd0,0x50,0x1a]
244 ! CHECK: tleu %xcc, %i5 + 41 ! encoding: [0x89,0xd7,0x70,0x29]
245 tleu %xcc, %i5
246 tleu %xcc, 82
247 tleu %xcc, %g1 + %i2
248 tleu %xcc, %i5 + 41
250 ! CHECK: tcc %xcc, %i5 ! encoding: [0x9b,0xd0,0x10,0x1d]
251 ! CHECK: tcc %xcc, 82 ! encoding: [0x9b,0xd0,0x30,0x52]
252 ! CHECK: tcc %xcc, %g1 + %i2 ! encoding: [0x9b,0xd0,0x50,0x1a]
253 ! CHECK: tcc %xcc, %i5 + 41 ! encoding: [0x9b,0xd7,0x70,0x29]
254 tcc %xcc, %i5
255 tcc %xcc, 82
256 tcc %xcc, %g1 + %i2
257 tcc %xcc, %i5 + 41
259 ! CHECK: tcs %xcc, %i5 ! encoding: [0x8b,0xd0,0x10,0x1d]
260 ! CHECK: tcs %xcc, 82 ! encoding: [0x8b,0xd0,0x30,0x52]
261 ! CHECK: tcs %xcc, %g1 + %i2 ! encoding: [0x8b,0xd0,0x50,0x1a]
262 ! CHECK: tcs %xcc, %i5 + 41 ! encoding: [0x8b,0xd7,0x70,0x29]
263 tcs %xcc, %i5
264 tcs %xcc, 82
265 tcs %xcc, %g1 + %i2
266 tcs %xcc, %i5 + 41
268 ! CHECK: tpos %xcc, %i5 ! encoding: [0x9d,0xd0,0x10,0x1d]
269 ! CHECK: tpos %xcc, 82 ! encoding: [0x9d,0xd0,0x30,0x52]
270 ! CHECK: tpos %xcc, %g1 + %i2 ! encoding: [0x9d,0xd0,0x50,0x1a]
271 ! CHECK: tpos %xcc, %i5 + 41 ! encoding: [0x9d,0xd7,0x70,0x29]
272 tpos %xcc, %i5
273 tpos %xcc, 82
274 tpos %xcc, %g1 + %i2
275 tpos %xcc, %i5 + 41
277 ! CHECK: tneg %xcc, %i5 ! encoding: [0x8d,0xd0,0x10,0x1d]
278 ! CHECK: tneg %xcc, 82 ! encoding: [0x8d,0xd0,0x30,0x52]
279 ! CHECK: tneg %xcc, %g1 + %i2 ! encoding: [0x8d,0xd0,0x50,0x1a]
280 ! CHECK: tneg %xcc, %i5 + 41 ! encoding: [0x8d,0xd7,0x70,0x29]
281 tneg %xcc, %i5
282 tneg %xcc, 82
283 tneg %xcc, %g1 + %i2
284 tneg %xcc, %i5 + 41
286 ! CHECK: tvc %xcc, %i5 ! encoding: [0x9f,0xd0,0x10,0x1d]
287 ! CHECK: tvc %xcc, 82 ! encoding: [0x9f,0xd0,0x30,0x52]
288 ! CHECK: tvc %xcc, %g1 + %i2 ! encoding: [0x9f,0xd0,0x50,0x1a]
289 ! CHECK: tvc %xcc, %i5 + 41 ! encoding: [0x9f,0xd7,0x70,0x29]
290 tvc %xcc, %i5
291 tvc %xcc, 82
292 tvc %xcc, %g1 + %i2
293 tvc %xcc, %i5 + 41
295 ! CHECK: tvs %xcc, %i5 ! encoding: [0x8f,0xd0,0x10,0x1d]
296 ! CHECK: tvs %xcc, 82 ! encoding: [0x8f,0xd0,0x30,0x52]
297 ! CHECK: tvs %xcc, %g1 + %i2 ! encoding: [0x8f,0xd0,0x50,0x1a]
298 ! CHECK: tvs %xcc, %i5 + 41 ! encoding: [0x8f,0xd7,0x70,0x29]
299 tvs %xcc, %i5
300 tvs %xcc, 82
301 tvs %xcc, %g1 + %i2
302 tvs %xcc, %i5 + 41