mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
af9e1c79a5
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224989 91177308-0d34-0410-b5e6-96231b3b80d8
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
# RUN: llvm-mc --triple hexagon -disassemble < %s | FileCheck %s
|
|
|
|
0xf1 0xc3 0x15 0xb0
|
|
# CHECK: r17 = add(r21, #31)
|
|
0x11 0xdf 0x15 0xf3
|
|
# CHECK: r17 = add(r21, r31)
|
|
0x11 0xdf 0x55 0xf6
|
|
# CHECK: r17 = add(r21, r31):sat
|
|
0xf1 0xc3 0x15 0x76
|
|
# CHECK: r17 = and(r21, #31)
|
|
0xf1 0xc3 0x95 0x76
|
|
# CHECK: r17 = or(r21, #31)
|
|
0x11 0xdf 0x15 0xf1
|
|
# CHECK: r17 = and(r21, r31)
|
|
0x11 0xdf 0x35 0xf1
|
|
# CHECK: r17 = or(r21, r31)
|
|
0x11 0xdf 0x75 0xf1
|
|
# CHECK: r17 = xor(r21, r31)
|
|
0x11 0xd5 0x9f 0xf1
|
|
# CHECK: r17 = and(r21, ~r31)
|
|
0x11 0xd5 0xbf 0xf1
|
|
# CHECK: r17 = or(r21, ~r31)
|
|
0x00 0xc0 0x00 0x7f
|
|
# CHECK: nop
|
|
0xb1 0xc2 0x5f 0x76
|
|
# CHECK: r17 = sub(#21, r31)
|
|
0x11 0xdf 0x35 0xf3
|
|
# CHECK: r17 = sub(r31, r21)
|
|
0x11 0xdf 0xd5 0xf6
|
|
# CHECK: r17 = sub(r31, r21):sat
|
|
0x11 0xc0 0xbf 0x70
|
|
# CHECK: r17 = sxtb(r31)
|
|
0x15 0xc0 0x31 0x72
|
|
# CHECK: r17.h = #21
|
|
0x15 0xc0 0x31 0x71
|
|
# CHECK: r17.l = #21
|
|
0xf1 0xff 0x5f 0x78
|
|
# CHECK: r17 = #32767
|
|
0xf1 0xff 0xdf 0x78
|
|
# CHECK: r17 = ##65535
|
|
0x11 0xc0 0x75 0x70
|
|
# CHECK: r17 = r21
|
|
0x11 0xc0 0xd5 0x70
|
|
# CHECK: r17 = zxth(r21)
|