1 # RUN: llvm-mc --disassemble %s -triple=xcore-xmos-elf | FileCheck %s
47 # CHECK: ldw et, sp[4]
50 # CHECK: ldw sed, sp[3]
53 # CHECK: ldw spc, sp[1]
56 # CHECK: ldw ssr, sp[2]
62 # CHECK: stw et, sp[4]
65 # CHECK: stw sed, sp[3]
68 # CHECK: stw spc, sp[1]
71 # CHECK: stw ssr, sp[2]
76 # CHECK: msync res[r0]
79 # CHECK: mjoin res[r1]
100 # CHECK: syncr res[r7]
103 # CHECK: freer res[r8]
106 # CHECK: setv res[r9], r11
109 # CHECK: setev res[r10], r11
112 # CHECK: eeu res[r11]
139 # CHECK: clrpt res[r9]
150 # CHECK: andnot r10, r11
153 # CHECK: mkmsk r11, r0
156 # CHECK: getts r8, res[r1]
159 # CHECK: setpt res[r2], r3
162 # CHECK: outct res[r1], r2
165 # CHECK: outt res[r5], r4
168 # CHECK: out res[r9], r10
171 # CHECK: outshr res[r0], r2
174 # CHECK: inct r7, res[r4]
177 # CHECK: int r8, res[r3]
180 # CHECK: in r10, res[r0]
183 # CHECK: inshr r4, res[r2]
186 # CHECK: chkct res[r6], r0
189 # CHECK: testct r8, res[r3]
192 # CHECK: testwct r2, res[r9]
195 # CHECK: setd res[r3], r4
198 # CHECK: getst r7, res[r1]
201 # CHECK: init t[r1]:sp, r2
204 # CHECK: init t[r10]:pc, r1
207 # CHECK: init t[r2]:cp, r10
210 # CHECK: init t[r2]:dp, r3
213 # CHECK: setpsc res[r8], r2
222 # CHECK: tsetmr r7, r3
225 # CHECK: eef r1, res[r6]
228 # CHECK: eet r11, res[r0]
233 # CHECK: chkct res[r1], 8
239 # CHECK: mkmsk r4, 24
242 # CHECK: outct res[r3], 0
251 # CHECK: peek r0, res[r5]
254 # CHECK: endin r10, res[r1]
259 # CHECK: bitrev r1, r10
262 # CHECK: byterev r4, r1
265 # CHECK: clz r11, r10
268 # CHECK: get r3, ps[r6]
271 # CHECK: setc res[r5], r9
274 # CHECK: init t[r2]:lr, r1
277 # CHECK: setclk res[r2], r1
280 # CHECK: set ps[r9], r10
283 # CHECK: setrdy res[r3], r1
286 # CHECK: settw res[r7], r2
289 # CHECK: getd r8, res[r3]
292 # CHECK: getn r10, res[r11]
295 # CHECK: testlcl r2, res[r0]
298 # CHECK: setn res[r9], r7
303 # CHECK: add r1, r2, r3
306 # CHECK: and r11, r10, r9
309 # CHECK: eq r6, r1, r2
312 # CHECK: ld16s r8, r3[r4]
315 # CHECK: ld8u r9, r1[r10]
318 # CHECK: ldw r9, r4[r5]
321 # CHECK: lss r7, r3, r0
324 # CHECK: lsu r5, r8, r6
327 # CHECK: or r1, r3, r2
330 # CHECK: shl r8, r2, r4
333 # CHECK: shr r9, r7, r1
336 # CHECK: sub r4, r2, r5
339 # CHECK: set t[r0]:r1, r2
344 # CHECK: add r10, r2, 5
347 # CHECK: eq r2, r1, 0
350 # CHECK: ldw r5, r6[1]
353 # CHECK: shl r6, r5, 24
356 # CHECK: shr r3, r8, 5
359 # CHECK: stw r3, r2[0]
362 # CHECK: sub r2, r4, 11
367 # CHECK: ashr r5, r1, r11
370 # CHECK: crc32 r5, r6, r1
373 # CHECK: divu r9, r1, r3
376 # CHECK: divs r6, r7, r2
379 # CHECK: lda16 r11, r2[r1]
382 # CHECK: lda16 r9, r3[-r11]
385 # CHECK: ldaw r9, r1[r2]
388 # CHECK: ldaw r8, r7[-r11]
391 # CHECK: mul r0, r4, r2
394 # CHECK: remu r1, r2, r3
397 # CHECK: rems r11, r10, r9
400 # CHECK: st16 r5, r3[r8]
403 # CHECK: st8 r9, r1[r3]
406 # CHECK: stw r7, r10[r1]
409 # CHECK: xor r4, r3, r9
414 # CHECK: ashr r5, r1, 3
417 # CHECK: ldaw r11, r10[6]
420 # CHECK: ldaw r8, r2[-9]
423 # CHECK: inpw r6, res[r1], 8
426 # CHECK: outpw res[r3], r0, 2
429 # ru6 / lru6 instructions
434 # CHECK: bt r10, -451
455 # CHECK: ldaw r11, dp[63]
458 # CHECK: ldaw r1, dp[456]
461 # CHECK: ldaw cp, dp[5]
464 # CHECK: ldaw sp, dp[9929]
467 # CHECK: ldaw r3, sp[2]
470 # CHECK: ldaw r8, sp[65535]
473 # CHECK: ldaw sp, sp[41]
476 # CHECK: ldaw sp, sp[13121]
482 # CHECK: ldc r11, 1000
491 # CHECK: ldw r0, cp[4]
494 # CHECK: ldw r1, cp[32345]
497 # CHECK: ldw cp, cp[8]
500 # CHECK: ldw sp, cp[10222]
503 # CHECK: ldw r10, dp[16]
506 # CHECK: ldw r10, dp[76]
509 # CHECK: ldw lr, dp[8]
512 # CHECK: ldw dp, dp[33221]
515 # CHECK: ldw r8, sp[51]
518 # CHECK: ldw r8, sp[1225]
521 # CHECK: ldw cp, sp[31]
524 # CHECK: ldw sp, sp[1000]
527 # CHECK: setc res[r5], 36
530 # CHECK: setc res[r2], 40312
533 # CHECK: stw r8, dp[14]
536 # CHECK: stw r9, dp[654]
539 # CHECK: stw lr, dp[23]
542 # CHECK: stw sp, dp[44442]
545 # CHECK: stw r1, sp[32]
548 # CHECK: stw r0, sp[8761]
551 # CHECK: stw cp, sp[63]
554 # CHECK: stw lr, sp[4391]
557 # u6 / lu6 instructions
589 # CHECK: ldaw r11, cp[5]
592 # CHECK: ldaw r11, cp[33000]
619 # CHECK: getsr r11, 54
622 # CHECK: getsr r11, 442
640 # CHECK: krestsp 55312
643 # u10 / lu10 instructions
645 # CHECK: ldap r11, 40
648 # CHECK: ldap r11, 53112
651 # CHECK: ldap r11, -22
654 # CHECK: ldap r11, -9999
672 # CHECK: bla cp[413742]
675 # CHECK: ldw r11, cp[132]
678 # CHECK: ldw r11, cp[102741]
683 # CHECK: lmul r11, r0, r2, r5, r8, r10
688 # CHECK: ladd r10, r2, r5, r1, r7
691 # CHECK: ldivu r5, r6, r3, r9, r8
694 # CHECK: lsub r1, r8, r7, r11, r5
699 # CHECK: crc8 r6, r3, r4, r11
702 # CHECK: maccs r11, r8, r2, r4
705 # CHECK: maccu r0, r2, r5, r8