198 lines
3.6 KiB
Plaintext
198 lines
3.6 KiB
Plaintext
|
# RUN: llvm-mc --disassemble %s -triple=mblaze-unknown-unknown | FileCheck %s
|
||
|
|
||
|
################################################################################
|
||
|
# Operands disassembly
|
||
|
################################################################################
|
||
|
|
||
|
# CHECK: add r0, r0, r0
|
||
|
0x00 0x00 0x00 0x00
|
||
|
|
||
|
# CHECK: add r1, r1, r1
|
||
|
0x00 0x21 0x08 0x00
|
||
|
|
||
|
# CHECK: add r2, r2, r2
|
||
|
0x00 0x42 0x10 0x00
|
||
|
|
||
|
# CHECK: add r3, r3, r3
|
||
|
0x00 0x63 0x18 0x00
|
||
|
|
||
|
# CHECK: add r4, r4, r4
|
||
|
0x00 0x84 0x20 0x00
|
||
|
|
||
|
# CHECK: add r5, r5, r5
|
||
|
0x00 0xa5 0x28 0x00
|
||
|
|
||
|
# CHECK: add r6, r6, r6
|
||
|
0x00 0xc6 0x30 0x00
|
||
|
|
||
|
# CHECK: add r7, r7, r7
|
||
|
0x00 0xe7 0x38 0x00
|
||
|
|
||
|
# CHECK: add r8, r8, r8
|
||
|
0x01 0x08 0x40 0x00
|
||
|
|
||
|
# CHECK: add r9, r9, r9
|
||
|
0x01 0x29 0x48 0x00
|
||
|
|
||
|
# CHECK: add r10, r10, r10
|
||
|
0x01 0x4a 0x50 0x00
|
||
|
|
||
|
# CHECK: add r11, r11, r11
|
||
|
0x01 0x6b 0x58 0x00
|
||
|
|
||
|
# CHECK: add r12, r12, r12
|
||
|
0x01 0x8c 0x60 0x00
|
||
|
|
||
|
# CHECK: add r13, r13, r13
|
||
|
0x01 0xad 0x68 0x00
|
||
|
|
||
|
# CHECK: add r14, r14, r14
|
||
|
0x01 0xce 0x70 0x00
|
||
|
|
||
|
# CHECK: add r15, r15, r15
|
||
|
0x01 0xef 0x78 0x00
|
||
|
|
||
|
# CHECK: add r16, r16, r16
|
||
|
0x02 0x10 0x80 0x00
|
||
|
|
||
|
# CHECK: add r17, r17, r17
|
||
|
0x02 0x31 0x88 0x00
|
||
|
|
||
|
# CHECK: add r18, r18, r18
|
||
|
0x02 0x52 0x90 0x00
|
||
|
|
||
|
# CHECK: add r19, r19, r19
|
||
|
0x02 0x73 0x98 0x00
|
||
|
|
||
|
# CHECK: add r20, r20, r20
|
||
|
0x02 0x94 0xa0 0x00
|
||
|
|
||
|
# CHECK: add r21, r21, r21
|
||
|
0x02 0xb5 0xa8 0x00
|
||
|
|
||
|
# CHECK: add r22, r22, r22
|
||
|
0x02 0xd6 0xb0 0x00
|
||
|
|
||
|
# CHECK: add r23, r23, r23
|
||
|
0x02 0xf7 0xb8 0x00
|
||
|
|
||
|
# CHECK: add r24, r24, r24
|
||
|
0x03 0x18 0xc0 0x00
|
||
|
|
||
|
# CHECK: add r25, r25, r25
|
||
|
0x03 0x39 0xc8 0x00
|
||
|
|
||
|
# CHECK: add r26, r26, r26
|
||
|
0x03 0x5a 0xd0 0x00
|
||
|
|
||
|
# CHECK: add r27, r27, r27
|
||
|
0x03 0x7b 0xd8 0x00
|
||
|
|
||
|
# CHECK: add r28, r28, r28
|
||
|
0x03 0x9c 0xe0 0x00
|
||
|
|
||
|
# CHECK: add r29, r29, r29
|
||
|
0x03 0xbd 0xe8 0x00
|
||
|
|
||
|
# CHECK: add r30, r30, r30
|
||
|
0x03 0xde 0xf0 0x00
|
||
|
|
||
|
# CHECK: add r31, r31, r31
|
||
|
0x03 0xff 0xf8 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, 0
|
||
|
0x20 0x00 0x00 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, 1
|
||
|
0x20 0x00 0x00 0x01
|
||
|
|
||
|
# CHECK: addi r0, r0, 2
|
||
|
0x20 0x00 0x00 0x02
|
||
|
|
||
|
# CHECK: addi r0, r0, 4
|
||
|
0x20 0x00 0x00 0x04
|
||
|
|
||
|
# CHECK: addi r0, r0, 8
|
||
|
0x20 0x00 0x00 0x08
|
||
|
|
||
|
# CHECK: addi r0, r0, 16
|
||
|
0x20 0x00 0x00 0x10
|
||
|
|
||
|
# CHECK: addi r0, r0, 32
|
||
|
0x20 0x00 0x00 0x20
|
||
|
|
||
|
# CHECK: addi r0, r0, 64
|
||
|
0x20 0x00 0x00 0x40
|
||
|
|
||
|
# CHECK: addi r0, r0, 128
|
||
|
0x20 0x00 0x00 0x80
|
||
|
|
||
|
# CHECK: addi r0, r0, 256
|
||
|
0x20 0x00 0x01 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, 512
|
||
|
0x20 0x00 0x02 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, 1024
|
||
|
0x20 0x00 0x04 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, 2048
|
||
|
0x20 0x00 0x08 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, 4096
|
||
|
0x20 0x00 0x10 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, 8192
|
||
|
0x20 0x00 0x20 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, 16384
|
||
|
0x20 0x00 0x40 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, -1
|
||
|
0x20 0x00 0xff 0xff
|
||
|
|
||
|
# CHECK: addi r0, r0, -2
|
||
|
0x20 0x00 0xff 0xfe
|
||
|
|
||
|
# CHECK: addi r0, r0, -4
|
||
|
0x20 0x00 0xff 0xfc
|
||
|
|
||
|
# CHECK: addi r0, r0, -8
|
||
|
0x20 0x00 0xff 0xf8
|
||
|
|
||
|
# CHECK: addi r0, r0, -16
|
||
|
0x20 0x00 0xff 0xf0
|
||
|
|
||
|
# CHECK: addi r0, r0, -32
|
||
|
0x20 0x00 0xff 0xe0
|
||
|
|
||
|
# CHECK: addi r0, r0, -64
|
||
|
0x20 0x00 0xff 0xc0
|
||
|
|
||
|
# CHECK: addi r0, r0, -128
|
||
|
0x20 0x00 0xff 0x80
|
||
|
|
||
|
# CHECK: addi r0, r0, -256
|
||
|
0x20 0x00 0xff 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, -512
|
||
|
0x20 0x00 0xfe 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, -1024
|
||
|
0x20 0x00 0xfc 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, -2048
|
||
|
0x20 0x00 0xf8 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, -4096
|
||
|
0x20 0x00 0xf0 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, -8192
|
||
|
0x20 0x00 0xe0 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, -16384
|
||
|
0x20 0x00 0xc0 0x00
|
||
|
|
||
|
# CHECK: addi r0, r0, -32768
|
||
|
0x20 0x00 0x80 0x00
|