DI: Fold constant arguments into a single MDString
[oota-llvm.git] / test / CodeGen / ARM / vfp-regs-dwarf.ll
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
13 define void @stack_offsets() {
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 = 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"}
36 !2 = metadata !{}
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 ]
41 !7 = metadata !{null}
42 !8 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
43 !9 = metadata !{i32 1, metadata !"Debug Info Version", i32 2}
44