Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-objdump / X86 / demangle.s
blob76aacb68995d2ea3017a07d77af04c0b0f70a8b1
1 # RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
2 # RUN: llvm-objdump -t -r --demangle %t | FileCheck %s
4 ## Check we demangle symbols when printing relocations.
5 # CHECK: 000000000000001 R_X86_64_PLT32 foo()-4
7 ## Check we demangle symbols when printing symbol table.
8 # CHECK: SYMBOL TABLE:
9 # CHECK-NEXT: 0000000000000000 g F .text 00000000 foo()
11 ## Check the case when relocations are inlined into disassembly.
12 # RUN: llvm-objdump -d -r --demangle %t | FileCheck %s --check-prefix=INLINE
13 # INLINE: foo():
14 # INLINE-NEXT: 0: {{.*}} callq 0 <_Z3foov+0x5>
15 # INLINE-NEXT: 0000000000000001: R_X86_64_PLT32 foo()-4
17 .text
18 .globl _Z3foov
19 .type _Z3foov,@function
20 _Z3foov:
21 callq _Z3foov@PLT