1 # RUN: llvm-mc -triple=arc -disassemble %s | FileCheck %s
3 # CHECK: abs_s %r0, %r1
6 # CHECK: add_s %r0, %r1, %r2
9 # CHECK: add_s %r0, %r0, %fp
12 # CHECK: add_s %fp, %fp, -1
15 # CHECK: add_s %fp, %fp, 6
18 # CHECK: add_s %r0, %r0, 287454020
19 0xc3 0x70 0x22 0x11 0x44 0x33
21 # CHECK: add_s 0, 287454020, 4
22 0xc7 0x74 0x22 0x11 0x44 0x33
24 # CHECK: add_s %r0, %sp, 64
27 # CHECK: add_s %r0, %r0, 64
30 # CHECK: add_s %r0, %r1, 7
33 # CHECK: add_s %sp, %sp, 64
36 # CHECK: add_s %r0, %gp, -4
39 # CHECK: add_s %r0, %r1, 4
42 # CHECK: add_s %r1, %r0, 4
45 # CHECK: add1_s %r0, %r0, %r1
48 # CHECK: add2_s %r0, %r0, %r1
51 # CHECK: add3_s %r0, %r0, %r1
54 # CHECK: and_s %r0, %r0, %r1
57 # CHECK: asl_s %r0, %r1
60 # CHECK: asl_s %r1, %r0, 4
63 # CHECK: asl_s %r0, %r0, %r1
66 # CHECK: asl_s %r0, %r0, 16
69 # CHECK: asr_s %r0, %r1
72 # CHECK: asr_s %r1, %r0, 4
75 # CHECK: asr_s %r0, %r0, %r1
78 # CHECK: asr_s %r0, %r0, 16
117 # CHECK: bclr_s %r0, %r0, 24
120 # CHECK: bic_s %r0, %r0, %r1
126 # CHECK: bmsk_s %r0, %r0, 24
129 # CHECK: brne_s %r0, 0, -128
132 # CHECK: breq_s %r0, 0, -128
138 # CHECK: bset_s %r0, %r0, 24
141 # CHECK: btst_s %r0, 24
144 # CHECK: cmp_s %r0, %sp
147 # CHECK: cmp_s %sp, -1
150 # CHECK: cmp_s %r2, 64
159 # CHECK: extb_s %r0, %r1
162 # CHECK: exth_s %r0, %r1
168 # CHECK: j_s [%blink]
174 # CHECK: j_s.d [%blink]
177 # CHECK: jeq_s [%blink]
180 # CHECK: jne_s [%blink]
186 # CHECK: jl_s.d [%r0]
192 # CHECK: ld_s %r0, [%r1, %r2]
195 # CHECK: ld_s %r0, [%sp, 64]
198 # CHECK: ld_s %r0, [%pcl, 512]
201 # CHECK: ld_s %r1, [%r0, 64]
204 # CHECK: ld_s %r0, [%gp, -1024]
207 # CHECK: ldb_s %r0, [%r1, %r2]
210 # CHECK: ldb_s %r0, [%sp, 64]
213 # CHECK: ldb_s %r1, [%r0, 16]
216 # CHECK: ldb_s %r0, [%gp, -256]
219 # CHECK: ldh_s %r0, [%r1, %r2]
222 # CHECK: ldh_s %r1, [%r0, 32]
225 # CHECK: ldh_s %r0, [%gp, -512]
228 # CHECK: ldh_s.x %r1, [%r0, 32]
231 # CHECK: ld_s %r0, [%r17, 8]
234 # CHECK: ld_s %r1, [%r17, 8]
237 # CHECK: ld_s %r2, [%r17, 8]
240 # CHECK: ld_s %r3, [%r17, 8]
243 # CHECK: ld_s.as %r0, [%r1, %r2]
246 # CHECK: ld_s %r1, [%gp, -1024]
249 # CHECK: ldi_s %r0, [64]
255 # CHECK: lsr_s %r0, %r1
258 # CHECK: lsr_s %r0, %r0, %r1
261 # CHECK: lsr_s %r0, %r0, 16
264 # CHECK: mov_s %r17, -1
270 # CHECK: mov_s.ne %r0, %r17
273 # CHECK: mov_s.ne %r0, 1024
274 0xdf 0x70 0x00 0x00 0x00 0x04
276 # CHECK: mov_s %r0, 128
279 # CHECK: mov_s %r16, %r17
282 # CHECK: mov_s %r16, 1024
283 0xd3 0x40 0x00 0x00 0x00 0x04
285 # CHECK: mov_s 0, %r17
288 # CHECK: mov_s 0, 1024
289 0xdb 0x46 0x00 0x00 0x00 0x04
291 # CHECK: mpy_s %r0, %r0, %r1
294 # CHECK: mpyuw_s %r0, %r0, %r1
297 # CHECK: mpyw_s %r0, %r0, %r1
300 # CHECK: neg_s %r0, %r1
306 # CHECK: not_s %r0, %r1
309 # CHECK: or_s %r0, %r0, %r1
315 # CHECK: pop_s %blink
321 # CHECK: push_s %blink
324 # CHECK: sexb_s %r0, %r1
327 # CHECK: sexh_s %r0, %r1
330 # CHECK: st_s %r0, [%sp, 64]
333 # CHECK: st_s %r1, [%r0, 64]
336 # CHECK: st_s %r0, [%gp, -1024]
339 # CHECK: stb_s %r0, [%sp, 64]
342 # CHECK: stb_s %r1, [%r0, 16]
345 # CHECK: sth_s %r1, [%r0, 32]
348 # CHECK: sub_s %r1, %r0, 4
351 # CHECK: sub_s.ne %r0, %r0, %r0
354 # CHECK: sub_s %r0, %r0, %r1
357 # CHECK: sub_s %r0, %r0, 16
360 # CHECK: sub_s %sp, %sp, 64
363 # CHECK: sub_s %r0, %r1, %r2
372 # CHECK: tst_s %r0, %r1
378 # CHECK: xor_s %r0, %r0, %r1