File: frame-1.test

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (31 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# RUN: rm -rf %t
# RUN: mkdir -p %t
# RUN: llc -filetype=obj %p/../Inputs/frame-dw2.ll -o %t/frame-dw2.o
# RUN: dsymutil -f -oso-prepend-path=%t -y %s -o - | llvm-dwarfdump -debug-frame - | FileCheck %s

# This test is meant to verify that identical CIEs will get reused
# in the same file but also inbetween files. For this to happen, we
# link twice the same file using this made-up debug map:

---
triple:          'i386-apple-darwin'
objects:
  - filename: frame-dw2.o
    symbols:
      - { sym: _bar, objAddr: 0x0, binAddr: 0x1000, size: 0x12 }
      - { sym: _baz, objAddr: 0x0, binAddr: 0x2000, size: 0x12 }
  - filename: frame-dw2.o
    symbols:
      - { sym: _baz, objAddr: 0x0, binAddr: 0x3000, size: 0x12 }
...

# CHECK: .debug_frame contents:
# CHECK: 00000000 {{[0-9a-f]*}} ffffffff CIE
# CHECK-NOT: FDE
# CHECK:  FDE cie=00000000 pc=00001000...00001
# CHECK-NOT: FDE
# CHECK:  FDE cie=00000000 pc=00002000...00002
# CHECK-NOT: FDE
# CHECK:  FDE cie=00000000 pc=00003000...00003
# CHECK-NOT: FDE
# CHECK: .eh_frame contents: