[llvm-commits] [llvm] r128445 - /llvm/trunk/test/CodeGen/X86/dbg-file-name.ll
Rafael Espindola
rafael.espindola at gmail.com
Mon Mar 28 19:18:55 PDT 2011
Author: rafael
Date: Mon Mar 28 21:18:54 2011
New Revision: 128445
URL: http://llvm.org/viewvc/llvm-project?rev=128445&view=rev
Log:
Reduce test case.
Modified:
llvm/trunk/test/CodeGen/X86/dbg-file-name.ll
Modified: llvm/trunk/test/CodeGen/X86/dbg-file-name.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/dbg-file-name.ll?rev=128445&r1=128444&r2=128445&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/dbg-file-name.ll (original)
+++ llvm/trunk/test/CodeGen/X86/dbg-file-name.ll Mon Mar 28 21:18:54 2011
@@ -1,69 +1,19 @@
-; RUN: llc -O0 < %s | FileCheck %s
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
-target triple = "x86_64-apple-darwin10.0.0"
+; RUN: llc -mtriple x86_64-apple-darwin10.0.0 < %s | FileCheck %s
; Radar 8884898
; CHECK: file 1 "/Users/manav/one/two/simple.c"
- at .str = private unnamed_addr constant [8 x i8] c"i = %d\0A\00", align 4
- at .str1 = private unnamed_addr constant [12 x i8] c"i + 1 = %d\0A\00", align 4
-
-define void @foo(i32 %i) nounwind {
-entry:
- %i_addr = alloca i32, align 4
- %"alloca point" = bitcast i32 0 to i32
- call void @llvm.dbg.declare(metadata !{i32* %i_addr}, metadata !9), !dbg !10
- store i32 %i, i32* %i_addr
- %0 = load i32* %i_addr, align 4, !dbg !11
- %1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8]* @.str, i32 0, i32 0), i32 %0) nounwind, !dbg !11
- %2 = load i32* %i_addr, align 4, !dbg !13
- %3 = add nsw i32 %2, 1, !dbg !13
- %4 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([12 x i8]* @.str1, i32 0, i32 0), i32 %3) nounwind, !dbg !13
- br label %return, !dbg !14
-
-return: ; preds = %entry
- ret void, !dbg !14
-}
-
-declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
-
declare i32 @printf(i8*, ...) nounwind
define i32 @main() nounwind {
-entry:
- %retval = alloca i32
- %0 = alloca i32
- %"alloca point" = bitcast i32 0 to i32
- call void @foo(i32 2) nounwind, !dbg !15
- call void @foo(i32 4) nounwind, !dbg !17
- store i32 0, i32* %0, align 4, !dbg !18
- %1 = load i32* %0, align 4, !dbg !18
- store i32 %1, i32* %retval, align 4, !dbg !18
- br label %return, !dbg !18
-
-return: ; preds = %entry
- %retval1 = load i32* %retval, !dbg !18
- ret i32 %retval1, !dbg !18
+ ret i32 0
}
-!llvm.dbg.sp = !{!0, !6}
+!llvm.dbg.sp = !{ !6}
-!0 = metadata !{i32 589870, i32 0, metadata !1, metadata !"foo", metadata !"foo", metadata !"foo", metadata !1, i32 4, metadata !3, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, void (i32)* @foo} ; [ DW_TAG_subprogram ]
!1 = metadata !{i32 589865, metadata !"simple.c", metadata !"/Users/manav/one/two", metadata !2} ; [ DW_TAG_file_type ]
!2 = metadata !{i32 589841, i32 0, i32 1, metadata !"simple.c", metadata !"/Users/manav/one/two", metadata !"LLVM build 00", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ]
-!3 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !4, i32 0, null} ; [ DW_TAG_subroutine_type ]
-!4 = metadata !{null, metadata !5}
!5 = metadata !{i32 589860, metadata !1, metadata !"int", metadata !1, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
!6 = metadata !{i32 589870, i32 0, metadata !1, metadata !"main", metadata !"main", metadata !"main", metadata !1, i32 9, metadata !7, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 ()* @main} ; [ DW_TAG_subprogram ]
!7 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !8, i32 0, null} ; [ DW_TAG_subroutine_type ]
!8 = metadata !{metadata !5}
-!9 = metadata !{i32 590081, metadata !0, metadata !"i", metadata !1, i32 4, metadata !5, i32 0} ; [ DW_TAG_arg_variable ]
-!10 = metadata !{i32 4, i32 0, metadata !0, null}
-!11 = metadata !{i32 5, i32 0, metadata !12, null}
-!12 = metadata !{i32 589835, metadata !0, i32 4, i32 0, metadata !1, i32 0} ; [ DW_TAG_lexical_block ]
-!13 = metadata !{i32 6, i32 0, metadata !12, null}
-!14 = metadata !{i32 7, i32 0, metadata !12, null}
-!15 = metadata !{i32 10, i32 0, metadata !16, null}
-!16 = metadata !{i32 589835, metadata !6, i32 9, i32 0, metadata !1, i32 1} ; [ DW_TAG_lexical_block ]
-!17 = metadata !{i32 11, i32 0, metadata !16, null}
-!18 = metadata !{i32 12, i32 0, metadata !16, null}
More information about the llvm-commits
mailing list