Home | History | Annotate | Download | only in X86
      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 !dbg !5 {
     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 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.2 (trunk 164980) (llvm/trunk 164979)", isOptimized: false, emissionKind: 0, file: !13, enums: !1, retainedTypes: !1, subprograms: !3, globals: !1, imports:  !1)
     25 !1 = !{}
     26 !3 = !{!5}
     27 !5 = distinct !DISubprogram(name: "isel_line_test2", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scopeLine: 4, file: !13, scope: !6, type: !7, variables: !1)
     28 !6 = !DIFile(filename: "bar.c", directory: "/usr/local/google/home/echristo/tmp")
     29 !7 = !DISubroutineType(types: !8)
     30 !8 = !{!9}
     31 !9 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
     32 !10 = !DILocation(line: 5, column: 3, scope: !11)
     33 !11 = distinct !DILexicalBlock(line: 4, column: 1, file: !13, scope: !5)
     34 !12 = !DILocation(line: 6, column: 3, scope: !11)
     35 !13 = !DIFile(filename: "bar.c", directory: "/usr/local/google/home/echristo/tmp")
     36 !14 = !{i32 1, !"Debug Info Version", i32 3}
     37