1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 21:42:54 +02:00
llvm-mirror/test/tools/llvm-objdump/AArch64
Paul Osmialowski 0fa09433f0 add support for -print-imm-hex for AArch64
Most immediates are printed in Aarch64InstPrinter using 'formatImm' macro,
but not all of them.

Implementation contains following rules:

- floating point immediates are always printed as decimal
- signed integer immediates are printed depends on flag settings
  (for negative values 'formatImm' macro prints the value as i.e -0x01
  which may be convenient when imm is an address or offset)
- logical immediates are always printed as hex
- the 64-bit immediate for advSIMD, encoded in "a🅱️c:d:e:f:g:h" is always printed as hex
- the 64-bit immedaite in exception generation instructions like:
  brk, dcps1, dcps2, dcps3, hlt, hvc, smc, svc is always printed as hex
- the rest of immediates is printed depends on availability
  of -print-imm-hex

Signed-off-by: Maciej Gabka <maciej.gabka@arm.com>
Signed-off-by: Paul Osmialowski <pawel.osmialowski@arm.com>

Differential Revision: http://reviews.llvm.org/D16929

llvm-svn: 269446
2016-05-13 18:00:09 +00:00
..
Inputs [Objdump] Pass the correct subtarget to printInst. 2015-03-28 20:44:05 +00:00
elf-aarch64-mapping-symbols.test [PATCH] D13360: [llvm-objdump] Teach -d about AArch64 mapping symbols 2015-10-01 21:57:09 +00:00
lit.local.cfg
macho-link-opt-hints.test dd the option, -link-opt-hints to llvm-objdump used with -macho to print the 2015-01-27 21:28:24 +00:00
macho-print-mrs.test [Objdump] Pass the correct subtarget to printInst. 2015-03-28 20:44:05 +00:00
macho-private-headers.test
macho-symbolized-disassembly.test add support for -print-imm-hex for AArch64 2016-05-13 18:00:09 +00:00