brintos

brintos / llvm-project-archived public Read only

0
0
Text · 745 B · c2caae8 Raw
22 lines · plain
1# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t2# RUN: llvm-objdump -t -r --demangle %t | FileCheck %s3 4## Check we demangle symbols when printing symbol table.5# CHECK:      SYMBOL TABLE:6# CHECK-NEXT: 0000000000000000 g     F .text           0000000000000000 foo()7 8## Check we demangle symbols when printing relocations.9# CHECK:      000000000000001 R_X86_64_PLT32 foo()-0x410 11## Check the case when relocations are inlined into disassembly.12# RUN: llvm-objdump -d -r --demangle %t | FileCheck %s --check-prefix=INLINE13# INLINE:      <foo()>:14# INLINE-NEXT:  0: {{.*}}  callq   0x5 <foo()+0x5>15# INLINE-NEXT:  0000000000000001:  R_X86_64_PLT32 foo()-0x416 17.text18.globl _Z3foov19.type _Z3foov,@function20_Z3foov:21 callq _Z3foov@PLT22