1 ; RUN: llc -mtriple=armv7-linux-gnueabihf %s -o - | FileCheck %s
4 ; void stack_offsets() {
5 ; asm("" ::: "d8", "d9", "d11", "d13");
7 ; Compiled with: "clang -target armv7-linux-gnueabihf -O3"
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.
13 define void @stack_offsets() !dbg !4 {
14 ; CHECK-LABEL: stack_offsets:
17 ; CHECK: vpush {d8, d9}
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
24 ; CHECK: vpop {d8, d9}
27 call void asm sideeffect "", "~{d8},~{d9},~{d11},~{d13}"() #1
32 !llvm.module.flags = !{!8, !9}
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")
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, retainedNodes: !2)
38 !5 = !DIFile(filename: "tmp.c", directory: "/Users/tim/llvm/build")
39 !6 = !DISubroutineType(types: !7)
41 !8 = !{i32 2, !"Dwarf Version", i32 4}
42 !9 = !{i32 1, !"Debug Info Version", i32 3}