75 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE1=0 -o %t1.o2# RUN: not llvm-dwarfdump -debug-loc %t1.o 2>&1 | FileCheck %s3 4# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE2=0 -o %t2.o5# RUN: not llvm-dwarfdump -debug-loc %t2.o 2>&1 | FileCheck %s6 7# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE3=0 -o %t3.o8# RUN: not llvm-dwarfdump -debug-loc %t3.o 2>&1 | FileCheck %s9 10# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE4=0 -o %t4.o11# RUN: not llvm-dwarfdump -debug-loc %t4.o 2>&1 | FileCheck %s12 13# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE5=0 -o %t5.o14# RUN: not llvm-dwarfdump -debug-loc %t5.o 2>&1 | FileCheck %s15 16# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE6=0 -o %t6.o17# RUN: not llvm-dwarfdump -debug-loc %t6.o 2>&1 | FileCheck %s18 19# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE7=0 -o %t7.o20# RUN: llvm-dwarfdump -debug-loc %t7.o 2>&1 | FileCheck %s --check-prefix=UNKNOWN-REG21 22# CHECK: error: unexpected end of data23 24# UNKNOWN-REG: (0x0000000000000000, 0x0000000000000001): DW_OP_regx 0xdeadbeef25 26.section .debug_loc,"",@progbits27.ifdef CASE128 .byte 1 # bogus29.endif30.ifdef CASE231 .quad 0 # starting offset32.endif33.ifdef CASE334 .quad 0 # starting offset35 .quad 1 # ending offset36.endif37.ifdef CASE438 .quad 0 # starting offset39 .quad 1 # ending offset40 .word 0 # Loc expr size41.endif42.ifdef CASE543 .quad 0 # starting offset44 .quad 1 # ending offset45 .word 0 # Loc expr size46 .quad 0 # starting offset47.endif48.ifdef CASE649 .quad 0 # starting offset50 .quad 1 # ending offset51 .word 0xffff # Loc expr size52.endif53.ifdef CASE754 .quad 0 # starting offset55 .quad 1 # ending offset56 .word 2f-1f # Loc expr size571:58 .byte 0x90 # DW_OP_regx59 .uleb128 0xdeadbeef602:61 .quad 0 # starting offset62 .quad 0 # ending offset63.endif64 65# A minimal compile unit is needed to deduce the address size of the location66# lists67.section .debug_info,"",@progbits68 .long .Lcu_end0-.Lcu_begin0 # Length of Unit69.Lcu_begin0:70 .short 4 # DWARF version number71 .long 0 # Offset Into Abbrev. Section72 .byte 8 # Address Size (in bytes)73 .byte 0 # End Of Children Mark74.Lcu_end0:75