ac969822ba45e1dc3932bea39495a55de0995011
[oota-llvm.git] / test / DebugInfo / X86 / prologue-stack.ll
1 ; RUN: llc -disable-fp-elim -O0 %s -mtriple x86_64-unknown-linux-gnu -o - | FileCheck %s
2
3 ; int callme(int);
4 ; int isel_line_test2() {
5 ;   callme(400);
6 ;   return 0;
7 ; }
8
9 define i32 @isel_line_test2() nounwind uwtable {
10   ; The stack adjustment should be part of the prologue.
11   ; CHECK: isel_line_test2:
12   ; CHECK: {{subq|leaq}} {{.*}}, %rsp
13   ; CHECK: .loc 1 5 3 prologue_end
14 entry:
15   %call = call i32 @callme(i32 400), !dbg !10
16   ret i32 0, !dbg !12
17 }
18
19 declare i32 @callme(i32)
20
21 !llvm.dbg.cu = !{!0}
22 !llvm.module.flags = !{!14}
23
24 !0 = !{!"0x11\0012\00clang version 3.2 (trunk 164980) (llvm/trunk 164979)\000\00\000\00\000", !13, !1, !1, !3, !1,  !1} ; [ DW_TAG_compile_unit ] [/usr/local/google/home/echristo/tmp/bar.c] [DW_LANG_C99]
25 !1 = !{}
26 !3 = !{!5}
27 !5 = !{!"0x2e\00isel_line_test2\00isel_line_test2\00\003\000\001\000\006\000\000\004", !13, !6, !7, null, i32 ()* @isel_line_test2, null, null, !1} ; [ DW_TAG_subprogram ] [line 3] [def] [scope 4] [isel_line_test2]
28 !6 = !{!"0x29", !13} ; [ DW_TAG_file_type ]
29 !7 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !8, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
30 !8 = !{!9}
31 !9 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]
32 !10 = !{i32 5, i32 3, !11, null}
33 !11 = !{!"0xb\004\001\000", !13, !5} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/bar.c]
34 !12 = !{i32 6, i32 3, !11, null}
35 !13 = !{!"bar.c", !"/usr/local/google/home/echristo/tmp"}
36 !14 = !{i32 1, !"Debug Info Version", i32 2}