1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/MC/COFF
Fangrui Song 3d2508df1f [X86InstPrinter] Change printPCRelImm to print the target address in hexadecimal form
```
// llvm-objdump -d output (before)
400000: e8 0b 00 00 00   callq 11
400005: e8 0b 00 00 00   callq 11

// llvm-objdump -d output (after)
400000: e8 0b 00 00 00  callq 0x400010
400005: e8 0b 00 00 00  callq 0x400015

// GNU objdump -d. The lack of 0x is not ideal because the result cannot be re-assembled
400000: e8 0b 00 00 00  callq 400010
400005: e8 0b 00 00 00  callq 400015
```

In llvm-objdump, we pass the address of the next MCInst. Ideally we
should just thread the address of the current address, unfortunately we
cannot call X86MCCodeEmitter::encodeInstruction (X86MCCodeEmitter
requires MCInstrInfo and MCContext) to get the length of the MCInst.

MCInstPrinter::printInst has other callers (e.g llvm-mc -filetype=asm, llvm-mca) which set Address to 0.
They leave MCInstPrinter::PrintBranchImmAsAddress as false and this change is a no-op for them.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D76580
2020-03-26 08:28:59 -07:00
..
ARM
addrsig.s
alias.s
align-nops.s
assoc-private.s
assoc-undef.s
bad-expr.s
basic-coff-64.s
basic-coff.s
bigobj.py
bss_section.ll
bss.s
cfi-sections.s
comm-align.s
comm.ll
comm.s
const-gv-with-rel-init.ll
cross-section-relative-err.s
cross-section-relative.ll
cross-section-relative.s
cv-compiler-info.ll
cv-def-range-align.s
cv-def-range-errors.s
cv-def-range-gap.s
cv-def-range.s
cv-empty-file-table.s
cv-empty-linetable.s
cv-errors.s
cv-fpo-csrs.s
cv-fpo-errors.s
cv-fpo-realign.s
cv-fpo-setframe.s
cv-inline-linetable-infloop.s
cv-inline-linetable-unlikely.s
cv-inline-linetable-unreachable.s
cv-inline-linetable.s
cv-loc-cross-section.s
cv-loc-unreachable-2.s
cv-loc-unreachable.s
cv-loc.s
cv-string.s
diff.s
directive-section-characteristics.ll
early-dce.s
eh-frame.s
feat00.s
file.s
global_ctors_dtors.ll
initialised-data.ll
invalid-def.s
invalid-endef.s
invalid-scl-range.s
invalid-scl.s
invalid-type-range.s
invalid-type.s
ir-to-imgrel.ll
label-undefined.s
linker-options.ll
linkonce-invalid.s
linkonce.s
lit.local.cfg
lset0.s
module-asm.ll
offset.s
pr23025.s
pr28462.s
rdata.ll
relax-reloc.s
relocation-imgrel.s
safeseh.s
secidx.s
secrel32-undef.s
secrel32.s
secrel-variant.s
section-comdat-conflict2.s
section-comdat-conflict.s
section-comdat.s
section-invalid-flags.s
section-name-encoding.s
section-passthru-flags.s
section.s
seh-align1.s
seh-align2.s
seh-align3.s
seh-linkonce.s
seh-section-2.s
seh-section.s
seh-stackalloc-zero.s
seh.s
simple-fixups.s
stdin.s
switch-relocations.ll
symbol-alias.s
symbol-fragment-offset-64.s
symbol-fragment-offset.s
symidx.s
temporary-alias.s
timestamp.s
tricky-names.ll
unsupported-relocations.s
weak-alias-local.s
weak-name.s
weak-val.s
weak.s