xref: /aosp_15_r20/external/llvm/test/DebugInfo/dwarfdump-debug-loc-simple.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-dwarfdump %p/Inputs/dwarfdump-test-loc-list-32bit.elf.o | FileCheck %s
2*9880d681SAndroid Build Coastguard WorkerNote: the input file was generated from Inputs/dwarfdump-test-loc-list-32bit.elf.cpp
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard WorkerCHECK: .debug_info
5*9880d681SAndroid Build Coastguard WorkerCHECK: DW_AT_name{{.*}}"f"
6*9880d681SAndroid Build Coastguard WorkerCHECK: DW_AT_location{{.*}}([[F_LOC:0x[0-9a-f]*]])
7*9880d681SAndroid Build Coastguard WorkerCHECK: DW_AT_name{{.*}}"g"
8*9880d681SAndroid Build Coastguard WorkerCHECK: DW_AT_location{{.*}}([[G_LOC:0x[0-9a-f]*]])
9*9880d681SAndroid Build Coastguard WorkerCHECK: .debug_loc contents:
10*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: [[F_LOC]]: Beginning address offset: 0x0000000000000000
11*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:               Ending address offset: 0x0000000000000023
12*9880d681SAndroid Build Coastguard Workerthis is actually the wrong location due to PR14763, but that doesn't matter for
13*9880d681SAndroid Build Coastguard Workerthe purposes of testing dwarfdump
14*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:                Location description: 51
15*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: {{^$}}
16*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:            Beginning address offset: 0x0000000000000023
17*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:               Ending address offset: 0x000000000000005d
18*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:                Location description: 75 70
19*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: {{^$}}
20*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: [[G_LOC]]: Beginning address offset: 0x0000000000000000
21*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:               Ending address offset: 0x0000000000000020
22*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:               Location description: 50
23*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: {{^$}}
24*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:            Beginning address offset: 0x0000000000000020
25*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:               Ending address offset: 0x000000000000005d
26*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT:                Location description: 75 74
27