mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 06:54:54 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119580 91177308-0d34-0410-b5e6-96231b3b80d8
75 lines
1.4 KiB
Plaintext
75 lines
1.4 KiB
Plaintext
# RUN: llvm-mc --disassemble %s -triple=mblaze-unknown-unknown | FileCheck %s
|
|
|
|
################################################################################
|
|
# TYPE A instructions
|
|
################################################################################
|
|
|
|
# CHECK: add r1, r2, r3
|
|
0x00 0x22 0x18 0x00
|
|
|
|
# CHECK: addc r1, r2, r3
|
|
0x08 0x22 0x18 0x00
|
|
|
|
# CHECK: addk r1, r2, r3
|
|
0x10 0x22 0x18 0x00
|
|
|
|
# CHECK: addkc r1, r2, r3
|
|
0x18 0x22 0x18 0x00
|
|
|
|
# CHECK: and r1, r2, r3
|
|
0x84 0x22 0x18 0x00
|
|
|
|
# CHECK: andn r1, r2, r3
|
|
0x8c 0x22 0x18 0x00
|
|
|
|
# CHECK: cmp r1, r2, r3
|
|
0x14 0x22 0x18 0x01
|
|
|
|
# CHECK: cmpu r1, r2, r3
|
|
0x14 0x22 0x18 0x03
|
|
|
|
# CHECK: idiv r1, r2, r3
|
|
0x48 0x22 0x18 0x00
|
|
|
|
# CHECK: idivu r1, r2, r3
|
|
0x48 0x22 0x18 0x02
|
|
|
|
# CHECK: mul r1, r2, r3
|
|
0x40 0x22 0x18 0x00
|
|
|
|
# CHECK: mulh r1, r2, r3
|
|
0x40 0x22 0x18 0x01
|
|
|
|
# CHECK: mulhu r1, r2, r3
|
|
0x40 0x22 0x18 0x03
|
|
|
|
# CHECK: mulhsu r1, r2, r3
|
|
0x40 0x22 0x18 0x02
|
|
|
|
# CHECK: or r1, r2, r3
|
|
0x80 0x22 0x18 0x00
|
|
|
|
# CHECK: rsub r1, r2, r3
|
|
0x04 0x22 0x18 0x00
|
|
|
|
# CHECK: rsubc r1, r2, r3
|
|
0x0c 0x22 0x18 0x00
|
|
|
|
# CHECK: rsubk r1, r2, r3
|
|
0x14 0x22 0x18 0x00
|
|
|
|
# CHECK: rsubkc r1, r2, r3
|
|
0x1c 0x22 0x18 0x00
|
|
|
|
# CHECK: sext16 r1, r2
|
|
0x90 0x22 0x00 0x61
|
|
|
|
# CHECK: sext8 r1, r2
|
|
0x90 0x22 0x00 0x60
|
|
|
|
# CHECK: xor r1, r2, r3
|
|
0x88 0x22 0x18 0x00
|
|
|
|
# CHECK: or r0, r0, r0
|
|
0x80 0x00 0x00 0x00
|