# Test that the `llvm-objdump -l` can print correct line numbers. # RUN: llvm-objdump -d -l %p/Inputs/basic32.o | FileCheck %s --check-prefix=LINES32 # RUN: llvm-objdump -d -l %p/Inputs/basic64.o | FileCheck %s --check-prefix=LINES64 ## basic32.o Compiled with IBM XL C/C++ for AIX, V16.1.1.0 ## Compiler command: xlc basic.c -c -qdbgfmt=dwarf -g -q32 -o basic32.o ## ## basic64.o Compiled with IBM XL C/C++ for AIX, V16.1.1.0 ## Compiler command: xlc basic.c -c -qdbgfmt=dwarf -g -q64 -o basic64.o ## ## basic.c: ## int main(void) ## { ## return 0; ## } # LINES32: Inputs/basic32.o: file format aixcoff-rs6000 # LINES32: Disassembly of section .text: # LINES32: 00000000 <.main>: # LINES32: ; .main(): # LINES32-NEXT: ; /basic.c:1 # LINES32-NEXT: 0: 38 60 00 00 li 3, 0 # LINES32-NEXT: ; /basic.c:3 # LINES32-NEXT: 4: 48 00 00 04 b 0x8 # LINES32-NEXT: ; /basic.c:4 # LINES32-NEXT: 8: 4e 80 00 20 blr # LINES32-NEXT: c: 00 00 00 00 <unknown> # LINES32-NEXT: 10: 00 00 20 40 <unknown> # LINES32-NEXT: 14: 00 00 00 01 <unknown> # LINES32-NEXT: 18: 00 00 00 0c <unknown> # LINES32-NEXT: 1c: 00 04 6d 61 <unknown> # LINES32-NEXT: 20: 69 6e 00 00 xori 14, 11, 0 # LINES64: Inputs/basic64.o: file format aix5coff64-rs6000 # LINES64: Disassembly of section .text: # LINES64: 0000000000000000 <.main>: # LINES64: ; .main(): # LINES64-NEXT: ; /basic.c:1 # LINES64-NEXT: 0: 38 60 00 00 li 3, 0 # LINES64-NEXT: ; /basic.c:3 # LINES64-NEXT: 4: 48 00 00 04 b 0x8 # LINES64-NEXT: ; /basic.c:4 # LINES64-NEXT: 8: 4e 80 00 20 blr # LINES64-NEXT: c: 00 00 00 00 <unknown> # LINES64-NEXT: 10: 00 00 20 40 <unknown> # LINES64-NEXT: 14: 00 00 00 01 <unknown> # LINES64-NEXT: 18: 00 00 00 0c <unknown> # LINES64-NEXT: 1c: 00 04 6d 61 <unknown> # LINES64-NEXT: 20: 69 6e 00 00 xori 14, 11, 0