mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
e7c682b543
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119580 91177308-0d34-0410-b5e6-96231b3b80d8
122 lines
2.7 KiB
Plaintext
122 lines
2.7 KiB
Plaintext
# RUN: llvm-mc --disassemble %s -triple=mblaze-unknown-unknown | FileCheck %s
|
|
|
|
################################################################################
|
|
# IMM instruction processing
|
|
################################################################################
|
|
|
|
# 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: imm 0
|
|
# CHECK: addi r0, r0, -32768
|
|
0xb0 0x00 0x00 0x00 0x20 0x00 0x80 0x00
|
|
|
|
# CHECK: imm 1
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x00 0x01 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 2
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x00 0x02 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 4
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x00 0x04 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 8
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x00 0x08 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 16
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x00 0x10 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 32
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x00 0x20 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 64
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x00 0x40 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 128
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x00 0x80 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 256
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x01 0x00 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 512
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x02 0x00 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 1024
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x04 0x00 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 2048
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x08 0x00 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 4096
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x10 0x00 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 8192
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x20 0x00 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm 16384
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x40 0x00 0x20 0x00 0x00 0x00
|
|
|
|
# CHECK: imm -32768
|
|
# CHECK: addi r0, r0, 0
|
|
0xb0 0x00 0x80 0x00 0x20 0x00 0x00 0x00
|