Debian Codegraph @

llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/frame-1.test

raw
1 # RUN: rm -rf %t
2 # RUN: mkdir -p %t
3 # RUN: llc -filetype=obj %p/../../Inputs/frame-dw2.ll -o %t/frame-dw2.o
4 # RUN: dsymutil --linker parallel -f -oso-prepend-path=%t -y %s -o - | \
5 # RUN: llvm-dwarfdump -debug-frame - | FileCheck %s
6
7 # This test is meant to verify that identical CIEs will get reused
8 # in the same file but not inbetween files. For this to happen, we
9 # link twice the same file using this made-up debug map:
10
11 ---
12 triple: 'i386-apple-darwin'
13 objects:
14 - filename: frame-dw2.o
15 symbols:
16 - { sym: _bar, objAddr: 0x0, binAddr: 0x1000, size: 0x12 }
17 - { sym: _baz, objAddr: 0x0, binAddr: 0x2000, size: 0x12 }
18 - filename: frame-dw2.o
19 symbols:
20 - { sym: _bar, objAddr: 0x0, binAddr: 0x3000, size: 0x12 }
21 - { sym: _baz, objAddr: 0x0, binAddr: 0x4000, size: 0x12 }
22 ...
23
24 # CHECK: .debug_frame contents:
25 # CHECK: 00000000 {{[0-9a-f]*}} ffffffff CIE
26 # CHECK-NOT: FDE
27 # CHECK: FDE cie=00000000 pc=00001000...00001
28 # CHECK-NOT: FDE
29 # CHECK: FDE cie=00000000 pc=00002000...00002
30 # CHECK: [[CIECU2:[0-9a-f]*]] {{[0-9a-f]*}} ffffffff CIE
31 # CHECK-NOT: FDE
32 # CHECK: FDE cie=[[CIECU2]] pc=00003000...00003
33 # CHECK-NOT: FDE
34 # CHECK: FDE cie=[[CIECU2]] pc=00004000...00004
35 # CHECK-NOT: FDE
36 # CHECK: .eh_frame contents: