• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=armv7-linux-gnueabihf %s -o - | FileCheck %s
2
3; Generated from:
4;     void stack_offsets() {
5;       asm("" ::: "d8", "d9", "d11", "d13");
6;     }
7; Compiled with: "clang -target armv7-linux-gnueabihf -O3"
8
9; The important point we're checking here is that the .cfi directives describe
10; the layout of the VFP registers correctly. The fact that the numbers are
11; monotonic in memory is also a nice property to have.
12
13define void @stack_offsets() !dbg !4 {
14; CHECK-LABEL: stack_offsets:
15; CHECK: vpush {d13}
16; CHECK: vpush {d11}
17; CHECK: vpush {d8, d9}
18
19; CHECK: .cfi_offset {{269|d13}}, -8
20; CHECK: .cfi_offset {{267|d11}}, -16
21; CHECK: .cfi_offset {{265|d9}}, -24
22; CHECK: .cfi_offset {{264|d8}}, -32
23
24; CHECK: vpop {d8, d9}
25; CHECK: vpop {d11}
26; CHECK: vpop {d13}
27  call void asm sideeffect "", "~{d8},~{d9},~{d11},~{d13}"() #1
28  ret void
29}
30
31!llvm.dbg.cu = !{!0}
32!llvm.module.flags = !{!8, !9}
33
34!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2)
35!1 = !DIFile(filename: "tmp.c", directory: "/Users/tim/llvm/build")
36!2 = !{}
37!4 = distinct !DISubprogram(name: "bar", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !5, type: !6, variables: !2)
38!5 = !DIFile(filename: "tmp.c", directory: "/Users/tim/llvm/build")
39!6 = !DISubroutineType(types: !7)
40!7 = !{null}
41!8 = !{i32 2, !"Dwarf Version", i32 4}
42!9 = !{i32 1, !"Debug Info Version", i32 3}
43
44