mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
1427abbf6b
The tests for the disassembler were adapted from the encoder tests, and for the most part, the output from the disassembler matches that encoder-test inputs. There are some places where more-informative mnemonics could be produced (notably for the branch instructions), and those cases are noted in the tests with FIXMEs. Future work includes: - Generating more-informative mnemonics when possible (this may also be done in the printer). - Remove the dependence on positional "numbered" operand-to-variable mapping (for both encoding and decoding). - Internally using 64-bit instruction variants in 64-bit mode (if this turns out to matter). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197693 91177308-0d34-0410-b5e6-96231b3b80d8
75 lines
1.6 KiB
Plaintext
75 lines
1.6 KiB
Plaintext
# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s
|
|
|
|
# CHECK: icbi 2, 3
|
|
0x7c 0x02 0x1f 0xac
|
|
|
|
# CHECK: dcbt 2, 3
|
|
0x7c 0x02 0x1a 0x2c
|
|
|
|
# CHECK: dcbtst 2, 3
|
|
0x7c 0x02 0x19 0xec
|
|
|
|
# CHECK: dcbz 2, 3
|
|
0x7c 0x02 0x1f 0xec
|
|
|
|
# CHECK: dcbst 2, 3
|
|
0x7c 0x02 0x18 0x6c
|
|
|
|
# CHECK: isync
|
|
0x4c 0x00 0x01 0x2c
|
|
|
|
# CHECK: stwcx. 2, 3, 4
|
|
0x7c 0x43 0x21 0x2d
|
|
|
|
# CHECK: stdcx. 2, 3, 4
|
|
0x7c 0x43 0x21 0xad
|
|
|
|
# CHECK: sync 2
|
|
0x7c 0x40 0x04 0xac
|
|
|
|
# CHECK: eieio
|
|
0x7c 0x00 0x06 0xac
|
|
|
|
# CHECK: wait 2
|
|
0x7c 0x40 0x00 0x7c
|
|
|
|
# CHECK: dcbf 2, 3
|
|
0x7c 0x02 0x18 0xac
|
|
|
|
# CHECK: lwarx 2, 3, 4
|
|
0x7c 0x43 0x20 0x28
|
|
|
|
# CHECK: ldarx 2, 3, 4
|
|
0x7c 0x43 0x20 0xa8
|
|
|
|
# CHECK: sync 0
|
|
0x7c 0x00 0x04 0xac
|
|
|
|
# CHECK: sync 0
|
|
0x7c 0x00 0x04 0xac
|
|
|
|
# CHECK: sync 1
|
|
0x7c 0x20 0x04 0xac
|
|
|
|
# CHECK: sync 2
|
|
0x7c 0x40 0x04 0xac
|
|
|
|
# CHECK: wait 0
|
|
0x7c 0x00 0x00 0x7c
|
|
|
|
# CHECK: wait 1
|
|
0x7c 0x20 0x00 0x7c
|
|
|
|
# CHECK: wait 2
|
|
0x7c 0x40 0x00 0x7c
|
|
|
|
# CHECK: mftb 2, 123
|
|
0x7c 0x5b 0x1a 0xe6
|
|
|
|
# CHECK: mftb 2, 268
|
|
0x7c 0x4c 0x42 0xe6
|
|
|
|
# CHECK: mftb 2, 269
|
|
0x7c 0x4d 0x42 0xe6
|
|
|