1 RUN: llvm-mc %S/debugloc.s -filetype obj -triple x86_64-linux-elf -o - \
2 RUN: | llvm-dwarfdump --debug-loc=0 - \
3 RUN: | FileCheck %s --check-prefix=CHECK-A
5 # CHECK-A: .debug_loc contents:
7 # CHECK-A-NEXT: [0x0000000000000000, 0x0000000000000003): DW_OP_reg5 RDI
8 # CHECK-A-NEXT: [0x0000000000000003, 0x0000000000000004): DW_OP_reg0 RAX
10 RUN: llvm-mc %S/debugloc.s -filetype obj -triple x86_64-linux-elf -o - \
11 RUN: | llvm-dwarfdump --debug-loc=0x36 - \
12 RUN: | FileCheck %s --check-prefix=CHECK-B
14 # CHECK-B: .debug_loc contents:
15 # CHECK-B: 0x00000036:
16 # CHECK-B-NEXT: [0x0000000000000010, 0x0000000000000013): DW_OP_reg5 RDI
17 # CHECK-B-NEXT: [0x0000000000000013, 0x0000000000000014): DW_OP_reg0 RAX