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() {
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 = metadata !{metadata !"0x11\0012\00clang version 3.5.0 \000\00\000\00\001", metadata !1, metadata !2, metadata !2, metadata !3, metadata !2, metadata !2} ; [ DW_TAG_compile_unit ] [/Users/tim/llvm/build/tmp.c] [DW_LANG_C99]
35 !1 = metadata !{metadata !"tmp.c", metadata !"/Users/tim/llvm/build"}
37 !3 = metadata !{metadata !4}
38 !4 = metadata !{metadata !"0x2e\00bar\00bar\00\001\000\001\000\006\000\000\001", metadata !1, metadata !5, metadata !6, null, void ()* @stack_offsets, null, null, metadata !2} ; [ DW_TAG_subprogram ] [line 1] [def] [bar]
39 !5 = metadata !{metadata !"0x29", metadata !1} ; [ DW_TAG_file_type ] [/Users/tim/llvm/build/tmp.c]
40 !6 = metadata !{metadata !"0x15\00\000\000\000\000\000\000", i32 0, null, null, metadata !7, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
42 !8 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
43 !9 = metadata !{i32 1, metadata !"Debug Info Version", i32 2}