mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
5faf4416ba
Add assembler/disassembler support for dcbt/dcbtst (and aliases) with the hint field specified (non-zero). Unforunately, the syntax for this instruction is special in that it differs for server vs. embedded cores: dcbt ra, rb, th [server] dcbt th, ra, rb [embedded] where th can be omitted when it is 0. dcbtst is the same. Thus we need to play games in the parser and the printer to flip the operands around on the embedded cores. We'll use the server syntax as the default (binutils currently uses the embedded form by default, but IBM is changing that). We also stop marking dcbtst as having unmodeled side effects (this is not necessary, it is just a hint like dcbt -- noticed by inspection, so no separate test case). llvm-svn: 235657
21 lines
504 B
Plaintext
21 lines
504 B
Plaintext
# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s -check-prefix=SERVER
|
|
# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=a2 | FileCheck %s -check-prefix=EMBEDDED
|
|
|
|
# SERVER: dcbt 2, 3
|
|
# EMBEDDED: dcbt 2, 3
|
|
0x7c 0x02 0x1a 0x2c
|
|
|
|
# SERVER: dcbtst 2, 3
|
|
# EMBEDDED: dcbtst 2, 3
|
|
0x7c 0x02 0x19 0xec
|
|
|
|
# SERVER: dcbt 2, 3, 10
|
|
# EMBEDDED: dcbt 10, 2, 3
|
|
0x7d 0x42 0x1a 0x2c
|
|
|
|
# SERVER: dcbtst 2, 3, 10
|
|
# EMBEDDED: dcbtst 10, 2, 3
|
|
0x7d 0x42 0x19 0xec
|
|
|
|
|