diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2016-03-17 10:43:44 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2016-03-17 10:43:44 +0000 |
commit | 34223a7e5d1053c5d6c9fc7fbef363b5d9f2f8d8 (patch) | |
tree | 830aadc192ccbc0f0ffa7f35f6dcdd658e1136a5 /llvm/test/tools/llvm-objdump | |
parent | 58ee875296e1f32d561f5cde1a9bcc8383c032c9 (diff) | |
download | bcm5719-llvm-34223a7e5d1053c5d6c9fc7fbef363b5d9f2f8d8.tar.gz bcm5719-llvm-34223a7e5d1053c5d6c9fc7fbef363b5d9f2f8d8.zip |
[llvm-objdump] Add '0x' prefix to a target displacement number to accent its hex format
It might be hard to recognize a hexadecimal number without '0x' prefix.
Besides that '0x' prefix corresponds to GNU objdump behaviour.
Differential Revision: http://reviews.llvm.org/D18207
llvm-svn: 263705
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
-rw-r--r-- | llvm/test/tools/llvm-objdump/hex-displacement.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/hex-displacement.test b/llvm/test/tools/llvm-objdump/hex-displacement.test new file mode 100644 index 00000000000..38ab94b1b29 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/hex-displacement.test @@ -0,0 +1,10 @@ +# Check that target displacement has '0x' prefix +# to accent hex format of the number. + +# RUN: llvm-objdump -d %p/Inputs/export.dll.coff-i386 | FileCheck %s + +# CHECK: exportfn2: +# CHECK-NEXT: 10002010: 50 pushl %eax +# CHECK-NEXT: 10002011: e8 00 00 00 00 calll 0 <exportfn2+0x6> +# CHECK-NEXT: 10002016: 50 pushl %eax +# CHECK-NEXT: 10002017: e8 00 00 00 00 calll 0 <exportfn2+0xC> |