1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/MC/Disassembler/ARC/alu.txt

116 lines
2.0 KiB
Plaintext

# RUN: llvm-mc -triple=arc -disassemble %s | FileCheck %s
# CHECK: add %r0, %r0, %r0
0x00 0x20 0x00 0x00
# CHECK: add %r4, %r0, %r0
0x00 0x20 0x04 0x00
# CHECK: add.f %r4, %r0, %r0
0x00 0x20 0x04 0x80
# CHECK: add %r2, %r0, %r3
0x00 0x20 0xc2 0x00
# CHECK: add %r2, %r0, %r4
0x00 0x20 0x02 0x01
# CHECK: add %r2, %r7, %r4
0x00 0x27 0x02 0x01
# CHECK: and %r2, %r7, %r4
0x04 0x27 0x02 0x01
# CHECK: and.f %r2, %r7, %r4
0x04 0x27 0x02 0x81
# CHECK: and %r2, %r7, 4
0x44 0x27 0x02 0x01
# CHECK: and %r1, %r1, 255
0x84 0x21 0xc3 0x0f
# CHECK: and.f %r1, %r1, 255
0x84 0x21 0xc3 0x8f
# CHECK: asl %r1, %r1, 2
0x40 0x29 0x81 0x00
# CHECK: asl %r0, %r0, %r0
0x00 0x28 0x00 0x00
# CHECK: asl.f %r0, %r0, %r0
0x00 0x28 0x00 0x80
# CHECK: asr %r1, %r2, 31
0x42 0x2a 0xc1 0x07
# CHECK: asr.f %r1, %r2, 31
0x42 0x2a 0xc1 0x87
# CHECK: asr %r1, %r3, 7
0x42 0x2b 0xc1 0x01
# CHECK: asr %r1, %r1, %r2
0x02 0x29 0x81 0x00
# CHECK: max %r0, %r2, %r1
0x08 0x22 0x40 0x00
# CHECK: max %r0, %r1, 15
0x48 0x21 0xc0 0x03
# CHECK: max %r0, %r2, 4000
0x08 0x22 0x80 0x0f 0x00 0x00 0xa0 0x0f
# CHECK: max %r2, %r2, 255
0x88 0x22 0xc3 0x0f
# CHECK: or %r18, %r16, 61440
0x05 0x20 0x92 0x2f 0x00 0x00 0x00 0xf0
# CHECK: or.f %r18, %r16, 61440
0x05 0x20 0x92 0xaf 0x00 0x00 0x00 0xf0
# CHECK: or %r1, %r1, %r14
0x05 0x21 0x81 0x03
# CHECK: or %r1, %r14, %r1
0x05 0x26 0x41 0x10
# CHECK: or %r1, %r1, 128
0x85 0x21 0x02 0x00
# CHECK: sub %sp, %fp, 92
0x02 0x23 0x9c 0x3f 0x00 0x00 0x5c 0x00
# CHECK: sub %r2, %r7, %r4
0x02 0x27 0x02 0x01
# CHECK: sub.f %r2, %r7, %r4
0x02 0x27 0x02 0x81
# CHECK: sub %r0, %r22, %r0
0x02 0x26 0x00 0x20
# CHECK: sub1 %r3, %fp, %r1
0x17 0x23 0x43 0x30
# CHECK: sub2 %r3, %fp, 17
0x58 0x23 0x43 0x34
# CHECK: sub3 %fp, %fp, -1
0x99 0x23 0xff 0x3f
# CHECK: sub3.f %fp, %fp, -1
0x99 0x23 0xff 0xbf
# CHECK: rsub.eq %r0, %r0, 30
0xce 0x20 0xa1 0x07
# CHECK: rsub.ne %r0, %r0, 31
0xce 0x20 0xe2 0x07
# CHECK: rsub.ne.f %r0, %r0, 31
0xce 0x20 0xe2 0x87