1 # RUN: llvm-mc -triple=arc -disassemble %s | FileCheck %s
3 # CHECK: add %r0, %r0, %r0
6 # CHECK: add %r4, %r0, %r0
9 # CHECK: add.f %r4, %r0, %r0
12 # CHECK: add %r2, %r0, %r3
15 # CHECK: add %r2, %r0, %r4
18 # CHECK: add %r2, %r7, %r4
21 # CHECK: and %r2, %r7, %r4
24 # CHECK: and.f %r2, %r7, %r4
27 # CHECK: and %r2, %r7, 4
30 # CHECK: and %r1, %r1, 255
33 # CHECK: and.f %r1, %r1, 255
36 # CHECK: asl %r1, %r1, 2
39 # CHECK: asl %r0, %r0, %r0
42 # CHECK: asl.f %r0, %r0, %r0
45 # CHECK: asr %r1, %r2, 31
48 # CHECK: asr.f %r1, %r2, 31
51 # CHECK: asr %r1, %r3, 7
54 # CHECK: asr %r1, %r1, %r2
57 # CHECK: max %r0, %r2, %r1
60 # CHECK: max %r0, %r1, 15
63 # CHECK: max %r0, %r2, 4000
64 0x08 0x22 0x80 0x0f 0x00 0x00 0xa0 0x0f
66 # CHECK: max %r2, %r2, 255
69 # CHECK: or %r18, %r16, 61440
70 0x05 0x20 0x92 0x2f 0x00 0x00 0x00 0xf0
72 # CHECK: or.f %r18, %r16, 61440
73 0x05 0x20 0x92 0xaf 0x00 0x00 0x00 0xf0
75 # CHECK: or %r1, %r1, %r14
78 # CHECK: or %r1, %r14, %r1
81 # CHECK: or %r1, %r1, 128
84 # CHECK: sub %sp, %fp, 92
85 0x02 0x23 0x9c 0x3f 0x00 0x00 0x5c 0x00
87 # CHECK: sub %r2, %r7, %r4
90 # CHECK: sub.f %r2, %r7, %r4
93 # CHECK: sub %r0, %r22, %r0
96 # CHECK: sub1 %r3, %fp, %r1
99 # CHECK: sub2 %r3, %fp, 17
102 # CHECK: sub3 %fp, %fp, -1
105 # CHECK: sub3.f %fp, %fp, -1