1 # REQUIRES: object-emission
4 # RUN: llc -filetype=obj %p/../Inputs/frame-dw2.ll -o %t/frame-dw2.o
5 # RUN: llc -filetype=obj %p/../Inputs/frame-dw4.ll -o %t/frame-dw4.o
6 # RUN: dsymutil -f -oso-prepend-path=%t -y %s -o - | llvm-dwarfdump -debug-frame - | FileCheck %s
8 # Check the handling of multiple different CIEs. To have CIEs that
9 # appear to be different, use a dwarf2 version of the file along with
10 # a dwarf 4 version. The CIE header version (and layout) will be different.
11 # FIXME: this test also checks that we didn't reuse the first CIE when it
12 # appears again. This is a behavior we inherited from dsymutil-classic
13 # but this should be fixed (see comment in patchFrameInfoForObject())
15 triple: 'i386-apple-darwin'
17 - filename: frame-dw2.o
19 - { sym: _bar, objAddr: 0x0, binAddr: 0x1000, size: 0x12 }
20 - { sym: _baz, objAddr: 0x0, binAddr: 0x2000, size: 0x12 }
21 - filename: frame-dw4.o
23 - { sym: _baz, objAddr: 0x0, binAddr: 0x3000, size: 0x12 }
24 - filename: frame-dw2.o
26 - { sym: _bar, objAddr: 0x0, binAddr: 0x4000, size: 0x12 }
29 # CHECK: .debug_frame contents:
30 # CHECK: 00000000 {{[0-9a-f]*}} ffffffff CIE
31 # CHECK-NEXT: Version:{{.*}}1
33 # CHECK: FDE cie=00000000 pc=00001000...00001
35 # CHECK: FDE cie=00000000 pc=00002000...00002
37 # CHECK: [[CIEDW4:[0-9a-f]*]] 00000010 ffffffff CIE
38 # CHECK-NEXT: Version:{{.*}}4
40 # CHECK: FDE cie=[[CIEDW4]] pc=00003000...00003
42 # CHECK: [[CIEDW2:[0-9a-f]*]] {{[0-9a-f]*}} ffffffff CIE
43 # CHECK-NEXT: Version:{{.*}}1
45 # CHECK: FDE cie=[[CIEDW2]] pc=00004000...00004
47 # CHECK: .eh_frame contents: