1 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE1=0 -o %t1.o
2 # RUN: llvm-dwarfdump -debug-loclists %t1.o 2>&1 | FileCheck %s --check-prefix=ULEB
4 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE2=0 -o %t2.o
5 # RUN: llvm-dwarfdump -debug-loclists %t2.o 2>&1 | FileCheck %s --check-prefix=ULEB
7 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE3=0 -o %t3.o
8 # RUN: llvm-dwarfdump -debug-loclists %t3.o 2>&1 | FileCheck %s --check-prefix=ULEB
10 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE4=0 -o %t4.o
11 # RUN: llvm-dwarfdump -debug-loclists %t4.o 2>&1 | FileCheck %s
13 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE5=0 -o %t5.o
14 # RUN: llvm-dwarfdump -debug-loclists %t5.o 2>&1 | FileCheck %s
16 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE6=0 -o %t6.o
17 # RUN: llvm-dwarfdump -debug-loclists %t6.o 2>&1 | FileCheck %s
19 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE7=0 -o %t7.o
20 # RUN: llvm-dwarfdump -debug-loclists %t7.o 2>&1 | FileCheck %s --check-prefix=UNIMPL
22 # CHECK: error: unexpected end of data
23 # ULEB: error: malformed uleb128, extends past end
24 # UNIMPL: error: LLE of kind 47 not supported
26 .section .debug_loclists,"",@progbits
27 .long .Ldebug_loclist_table_end0-.Ldebug_loclist_table_start0
28 .Ldebug_loclist_table_start0:
30 .byte 8 # Address size.
31 .byte 0 # Segment selector size.
32 .long 0 # Offset entry count.
33 .Lloclists_table_base0:
36 .byte 4 # DW_LLE_offset_pair
39 .byte 4 # DW_LLE_offset_pair
40 .uleb128 0x0 # starting offset
43 .byte 4 # DW_LLE_offset_pair
44 .uleb128 0x0 # starting offset
45 .uleb128 0x10 # ending offset
48 .byte 4 # DW_LLE_offset_pair
49 .uleb128 0x0 # starting offset
50 .uleb128 0x10 # ending offset
51 .byte 1 # Loc expr size
54 .byte 4 # DW_LLE_offset_pair
55 .uleb128 0x0 # starting offset
56 .uleb128 0x10 # ending offset
57 .byte 1 # Loc expr size
58 .byte 117 # DW_OP_breg5
61 .byte 4 # DW_LLE_offset_pair
62 .uleb128 0x0 # starting offset
63 .uleb128 0x10 # ending offset
64 .uleb128 0xdeadbeef # Loc expr size
70 .Ldebug_loclist_table_end0: