llvm-for-llvmta/test/MC/Disassembler/PowerPC/ppc64-operands.txt

95 lines
1.9 KiB
Plaintext

# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s
# CHECK: add 1, 2, 3
0x7c 0x22 0x1a 0x14
# CHECK: add 1, 2, 3
0x7c 0x22 0x1a 0x14
# CHECK: add 0, 0, 0
0x7c 0x00 0x02 0x14
# CHECK: add 31, 31, 31
0x7f 0xff 0xfa 0x14
# CHECK: li 1, 0
0x38 0x20 0x00 0x00
# CHECK: addi 1, 2, 0
0x38 0x22 0x00 0x00
# CHECK: li 1, -32768
0x38 0x20 0x80 0x00
# CHECK: li 1, 32767
0x38 0x20 0x7f 0xff
# CHECK: ori 1, 2, 0
0x60 0x41 0x00 0x00
# CHECK: ori 1, 2, 65535
0x60 0x41 0xff 0xff
# CHECK: lis 1, 0
0x3c 0x20 0x00 0x00
# CHECK: lis 1, -1
0x3c 0x20 0xff 0xff
# CHECK: lwz 1, 0(0)
0x80 0x20 0x00 0x00
# CHECK: lwz 1, 0(0)
0x80 0x20 0x00 0x00
# CHECK: lwz 1, 0(31)
0x80 0x3f 0x00 0x00
# CHECK: lwz 1, 0(31)
0x80 0x3f 0x00 0x00
# CHECK: lwz 1, -32768(2)
0x80 0x22 0x80 0x00
# CHECK: lwz 1, 32767(2)
0x80 0x22 0x7f 0xff
# CHECK: ld 1, 0(0)
0xe8 0x20 0x00 0x00
# CHECK: ld 1, 0(0)
0xe8 0x20 0x00 0x00
# CHECK: ld 1, 0(31)
0xe8 0x3f 0x00 0x00
# CHECK: ld 1, 0(31)
0xe8 0x3f 0x00 0x00
# CHECK: ld 1, -32768(2)
0xe8 0x22 0x80 0x00
# CHECK: ld 1, 32764(2)
0xe8 0x22 0x7f 0xfc
# CHECK: ld 1, 4(2)
0xe8 0x22 0x00 0x04
# CHECK: ld 1, -4(2)
0xe8 0x22 0xff 0xfc
# CHECK: b .+1024
0x48 0x00 0x04 0x00
# CHECK: ba 1024
0x48 0x00 0x04 0x02
# FIXME: decode as beq 0, .+1024
# CHECK: bt 2, .+1024
0x41 0x82 0x04 0x00
# FIXME: decode as beqa 0, 1024
# CHECK: bta 2, 1024
0x41 0x82 0x04 0x02