llvm/test/tools/llvm-objdump
Paul Osmialowski 0b30fc6010 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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269446 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-13 18:00:09 +00:00
..
AArch64 add support for -print-imm-hex for AArch64 2016-05-13 18:00:09 +00:00
ARM Update llvm-objdump for disassembly of ARM Mach-O files to always include the opcode bytes. 2016-04-28 20:14:13 +00:00
Inputs Fix bugs in llvm-objdump printing the last word for -section in non i386 and x86 files. 2016-04-27 23:43:00 +00:00
X86 Fix a bug in llvm-objdump for -private-headers printing the LC_CODE_SIGNATURE Mach-O load command. 2016-04-28 21:07:20 +00:00
coff-file.test tools: fix heap-buffer-overrun detected via ASAN 2014-04-14 16:38:25 +00:00
coff-large-bss.test llvm-objdump: Skip empty sections when dumping contents 2014-11-11 09:58:25 +00:00
coff-many-relocs.test Object/COFF: Support large relocation table. 2014-03-21 00:44:19 +00:00
coff-non-null-terminated-file.test tools: address possible non-null terminated filenames 2014-04-14 02:37:23 +00:00
coff-private-headers.test [llvm-objdump] Add support for dumping the PE TLS directory 2016-03-15 06:14:01 +00:00
common-symbol-elf.test [Objdump] Output information about common symbols in a way closer to GNU objdump. 2015-01-23 20:06:24 +00:00
eh_frame_zero_cie.test [DebugInfo] Support zero-length CIE in the _eh_frame parser 2016-01-27 14:05:35 +00:00
eh_frame-arm64.test [DebugInfo] Dump CIE augmentation data as a list of hex bytes 2016-03-01 18:38:05 +00:00
eh_frame-mipsel.test [DebugInfo] Dump CIE augmentation data as a list of hex bytes 2016-03-01 18:38:05 +00:00
hex-relocation-addr.test llvm-objdump output hex to match binutils' objdump 2014-03-20 22:55:15 +00:00
invalid-input.test Fix buildbot failure on Windows by relaxing test expectations. 2015-06-04 19:22:00 +00:00
macho-bad-ordinal.test [llvm-objdump] Update error message and add test case for mach-o file with bad library ordinals 2014-10-14 23:29:38 +00:00
macho-bind2.test [llvm-objdump] Fix mach-o binding decompression error 2014-10-18 01:21:02 +00:00
macho-bind.test [llvm-objdump] clean up test cases now that build bots are green 2014-09-17 21:53:07 +00:00
macho-compact-unwind-i386.test llvm-objdump: implement printing for MachO __compact_unwind info. 2014-08-01 13:07:19 +00:00
macho-compact-unwind-x86_64.test llvm-objdump: implement printing for MachO __compact_unwind info. 2014-08-01 13:07:19 +00:00
macho-exports-trie.test Fix test case to match correct llvm-objdump output 2014-09-03 01:34:58 +00:00
macho-lazy-bind.test [llvm-objdump] clean up test cases now that build bots are green 2014-09-17 21:53:07 +00:00
macho-objc-meta-data.test Add a test case for the crash fixed with r267037. David Blaikie said it would be nice to have! 2016-04-27 20:37:06 +00:00
macho-rebase.test Stop suppress error messages in test case to see why one buildbot is failing 2014-09-12 22:46:01 +00:00
macho-sections.test Fix bugs in llvm-objdump printing the last word for -section in non i386 and x86 files. 2016-04-27 23:43:00 +00:00
macho-unwind-info-arm64.test llvm-objdump: print contents of MachO __unwind_info sections 2014-08-12 11:52:59 +00:00
macho-unwind-info-no-relocs.test llvm-objdump: don't crash when __compact_unwind has no relocs. 2014-09-09 10:45:06 +00:00
macho-unwind-info-x86_64.test llvm-objdump: print contents of MachO __unwind_info sections 2014-08-12 11:52:59 +00:00
macho-weak-bind.test [llvm-objdump] clean up test cases now that build bots are green 2014-09-17 21:53:07 +00:00
malformed-archives.test [llvm-objdump] Use report_error() and improve error coverage. 2016-01-13 02:03:31 +00:00
malformed-macho.test Thread Expected<...> up from createMachOObjectFile() to allow llvm-objdump to produce a real error message 2016-04-06 22:14:09 +00:00
proc-specific-section-elf.test [Objdump] Fixing crash when printing symbols in ELF sections with special types. 2015-02-18 23:00:22 +00:00
section-filter.test [llvm-objdump] Merging MachO DumpSections in to FilterSections. Simplifying some predicate logic. 2015-07-29 19:08:10 +00:00
win64-unwind-data.test llvm-objdump: Indent unwind info contents. 2014-03-04 19:23:56 +00:00