diff options
author | Chris Lattner <sabre@nondot.org> | 2011-06-17 03:14:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-06-17 03:14:27 +0000 |
commit | 26b0000166ca3d00f2a1990b43a1f45cdac4e9b6 (patch) | |
tree | f6a7581ff89c965fe0b0d3fabc5b780a695c1ce5 /test/CodeGen/X86 | |
parent | cd4e0b593db6dfdb5cedbde47ea6603058b8ac6c (diff) | |
download | llvm-26b0000166ca3d00f2a1990b43a1f45cdac4e9b6.tar.gz llvm-26b0000166ca3d00f2a1990b43a1f45cdac4e9b6.tar.bz2 llvm-26b0000166ca3d00f2a1990b43a1f45cdac4e9b6.tar.xz |
manually upgrade a bunch of tests to modern syntax, and remove some that
are either unreduced or only test old syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
37 files changed, 42 insertions, 1854 deletions
diff --git a/test/CodeGen/X86/2007-05-07-InvokeSRet.ll b/test/CodeGen/X86/2007-05-07-InvokeSRet.ll index ae49bd0022..22e2750a50 100644 --- a/test/CodeGen/X86/2007-05-07-InvokeSRet.ll +++ b/test/CodeGen/X86/2007-05-07-InvokeSRet.ll @@ -7,7 +7,7 @@ declare void @invokee(%struct.S* sret ) define void @invoker(%struct.S* %name.0.0) { entry: - invoke void @invokee( %struct.S* %name.0.0 sret ) + invoke void @invokee( %struct.S* sret %name.0.0 ) to label %return unwind label %return return: ; preds = %entry, %entry diff --git a/test/CodeGen/X86/2007-05-14-LiveIntervalAssert.ll b/test/CodeGen/X86/2007-05-14-LiveIntervalAssert.ll index 8ef253822b..ecc5835405 100644 --- a/test/CodeGen/X86/2007-05-14-LiveIntervalAssert.ll +++ b/test/CodeGen/X86/2007-05-14-LiveIntervalAssert.ll @@ -3,7 +3,7 @@ %struct.XDesc = type <{ i32, %struct.OpaqueXDataStorageType** }> %struct.OpaqueXDataStorageType = type opaque -declare i16 @GetParamDesc(%struct.XDesc*, i32, i32, %struct.XDesc*) signext +declare signext i16 @GetParamDesc(%struct.XDesc*, i32, i32, %struct.XDesc*) declare void @r_raise(i64, i8*, ...) @@ -18,7 +18,7 @@ cond_true109: ; preds = %entry br i1 false, label %cond_next164, label %cond_true239 cond_next164: ; preds = %cond_true109 - %tmp176 = call i16 @GetParamDesc( %struct.XDesc* null, i32 1701999219, i32 1413830740, %struct.XDesc* null ) signext ; <i16> [#uses=0] + %tmp176 = call signext i16 @GetParamDesc( %struct.XDesc* null, i32 1701999219, i32 1413830740, %struct.XDesc* null ) call void (i64, i8*, ...)* @r_raise( i64 0, i8* null ) unreachable diff --git a/test/CodeGen/X86/2007-06-04-tailmerge4.ll b/test/CodeGen/X86/2007-06-04-tailmerge4.ll deleted file mode 100644 index d5ec0898b9..0000000000 --- a/test/CodeGen/X86/2007-06-04-tailmerge4.ll +++ /dev/null @@ -1,454 +0,0 @@ -; RUN: llc < %s -asm-verbose | grep invcont131 -; PR 1496: tail merge was incorrectly removing this block - -; ModuleID = 'report.1.bc' -target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" -target triple = "i686-pc-linux-gnu" - %struct.ALLOC = type { %struct.string___XUB, [2 x i8] } - %struct.RETURN = type { i32, i32, i32, i64 } - %struct.ada__streams__root_stream_type = type { %struct.ada__tags__dispatch_table* } - %struct.ada__tags__dispatch_table = type { [1 x i8*] } - %struct.ada__text_io__text_afcb = type { %struct.system__file_control_block__afcb, i32, i32, i32, i32, i32, %struct.ada__text_io__text_afcb*, i8, i8 } - %struct.string___XUB = type { i32, i32 } - %struct.string___XUP = type { i8*, %struct.string___XUB* } - %struct.system__file_control_block__afcb = type { %struct.ada__streams__root_stream_type, i32, %struct.string___XUP, i32, %struct.string___XUP, i8, i8, i8, i8, i8, i8, i8, %struct.system__file_control_block__afcb*, %struct.system__file_control_block__afcb* } - %struct.system__secondary_stack__mark_id = type { i8*, i32 } - %struct.wide_string___XUP = type { i16*, %struct.string___XUB* } -@report_E = global i8 0 ; <i8*> [#uses=0] -@report__test_status = internal global i8 1 ; <i8*> [#uses=8] -@report__test_name = internal global [15 x i8] zeroinitializer ; <[15 x i8]*> [#uses=10] -@report__test_name_len = internal global i32 0 ; <i32*> [#uses=15] -@.str = internal constant [12 x i8] c"report.adb\00\00" ; <[12 x i8]*> [#uses=1] -@C.26.599 = internal constant %struct.string___XUB { i32 1, i32 1 } ; <%struct.string___XUB*> [#uses=1] -@.str1 = internal constant [1 x i8] c":" ; <[1 x i8]*> [#uses=1] -@.str2 = internal constant [1 x i8] c" " ; <[1 x i8]*> [#uses=1] -@.str3 = internal constant [1 x i8] c"-" ; <[1 x i8]*> [#uses=1] -@.str5 = internal constant [10 x i8] c"0123456789" ; <[10 x i8]*> [#uses=12] -@C.59.855 = internal constant %struct.string___XUB { i32 1, i32 0 } ; <%struct.string___XUB*> [#uses=1] -@C.69.876 = internal constant %struct.string___XUB { i32 1, i32 3 } ; <%struct.string___XUB*> [#uses=1] -@C.70.879 = internal constant %struct.string___XUB { i32 1, i32 6 } ; <%struct.string___XUB*> [#uses=1] -@C.81.900 = internal constant %struct.string___XUB { i32 1, i32 5 } ; <%struct.string___XUB*> [#uses=1] -@.str6 = internal constant [0 x i8] zeroinitializer ; <[0 x i8]*> [#uses=1] -@.str7 = internal constant [3 x i8] c"2.5" ; <[3 x i8]*> [#uses=1] -@.str8 = internal constant [6 x i8] c"ACATS " ; <[6 x i8]*> [#uses=1] -@.str9 = internal constant [5 x i8] c",.,. " ; <[5 x i8]*> [#uses=1] -@.str10 = internal constant [1 x i8] c"." ; <[1 x i8]*> [#uses=1] -@.str11 = internal constant [5 x i8] c"---- " ; <[5 x i8]*> [#uses=1] -@.str12 = internal constant [5 x i8] c" - " ; <[5 x i8]*> [#uses=1] -@.str13 = internal constant [5 x i8] c" * " ; <[5 x i8]*> [#uses=1] -@.str14 = internal constant [5 x i8] c" + " ; <[5 x i8]*> [#uses=1] -@.str15 = internal constant [5 x i8] c" ! " ; <[5 x i8]*> [#uses=1] -@C.209.1380 = internal constant %struct.string___XUB { i32 1, i32 37 } ; <%struct.string___XUB*> [#uses=1] -@.str16 = internal constant [37 x i8] c" PASSED ============================." ; <[37 x i8]*> [#uses=1] -@.str17 = internal constant [5 x i8] c"==== " ; <[5 x i8]*> [#uses=1] -@.str18 = internal constant [37 x i8] c" NOT-APPLICABLE ++++++++++++++++++++." ; <[37 x i8]*> [#uses=1] -@.str19 = internal constant [5 x i8] c"++++ " ; <[5 x i8]*> [#uses=1] -@.str20 = internal constant [37 x i8] c" TENTATIVELY PASSED !!!!!!!!!!!!!!!!." ; <[37 x i8]*> [#uses=1] -@.str21 = internal constant [5 x i8] c"!!!! " ; <[5 x i8]*> [#uses=1] -@.str22 = internal constant [37 x i8] c" SEE '!' COMMENTS FOR SPECIAL NOTES!!" ; <[37 x i8]*> [#uses=1] -@.str23 = internal constant [37 x i8] c" FAILED ****************************." ; <[37 x i8]*> [#uses=1] -@.str24 = internal constant [5 x i8] c"**** " ; <[5 x i8]*> [#uses=1] -@__gnat_others_value = external constant i32 ; <i32*> [#uses=2] -@system__soft_links__abort_undefer = external global void ()* ; <void ()**> [#uses=1] -@C.320.1854 = internal constant %struct.string___XUB { i32 2, i32 6 } ; <%struct.string___XUB*> [#uses=1] - -declare void @report__put_msg(i64 %msg.0.0) - -declare void @__gnat_rcheck_05(i8*, i32) - -declare void @__gnat_rcheck_12(i8*, i32) - -declare %struct.ada__text_io__text_afcb* @ada__text_io__standard_output() - -declare void @ada__text_io__set_col(%struct.ada__text_io__text_afcb*, i32) - -declare void @ada__text_io__put_line(%struct.ada__text_io__text_afcb*, i64) - -declare void @report__time_stamp(%struct.string___XUP* sret %agg.result) - -declare i64 @ada__calendar__clock() - -declare void @ada__calendar__split(%struct.RETURN* sret , i64) - -declare void @system__string_ops_concat_5__str_concat_5(%struct.string___XUP* sret , i64, i64, i64, i64, i64) - -declare void @system__string_ops_concat_3__str_concat_3(%struct.string___XUP* sret , i64, i64, i64) - -declare i8* @system__secondary_stack__ss_allocate(i32) - -declare void @report__test(i64 %name.0.0, i64 %descr.0.0) - -declare void @system__secondary_stack__ss_mark(%struct.system__secondary_stack__mark_id* sret ) - -declare i8* @llvm.eh.exception() - -declare i32 @llvm.eh.selector(i8*, i8*, ...) - -declare i32 @llvm.eh.typeid.for(i8*) - -declare i32 @__gnat_eh_personality(...) - -declare i32 @_Unwind_Resume(...) - -declare void @__gnat_rcheck_07(i8*, i32) - -declare void @system__secondary_stack__ss_release(i64) - -declare void @report__comment(i64 %descr.0.0) - -declare void @report__failed(i64 %descr.0.0) - -declare void @report__not_applicable(i64 %descr.0.0) - -declare void @report__special_action(i64 %descr.0.0) - -define void @report__result() { -entry: - %tmp = alloca %struct.system__secondary_stack__mark_id, align 8 ; <%struct.system__secondary_stack__mark_id*> [#uses=3] - %A.210 = alloca %struct.string___XUB, align 8 ; <%struct.string___XUB*> [#uses=3] - %tmp5 = alloca %struct.string___XUP, align 8 ; <%struct.string___XUP*> [#uses=3] - %A.229 = alloca %struct.string___XUB, align 8 ; <%struct.string___XUB*> [#uses=3] - %tmp10 = alloca %struct.string___XUP, align 8 ; <%struct.string___XUP*> [#uses=3] - %A.248 = alloca %struct.string___XUB, align 8 ; <%struct.string___XUB*> [#uses=3] - %tmp15 = alloca %struct.string___XUP, align 8 ; <%struct.string___XUP*> [#uses=3] - %A.270 = alloca %struct.string___XUB, align 8 ; <%struct.string___XUB*> [#uses=3] - %tmp20 = alloca %struct.string___XUP, align 8 ; <%struct.string___XUP*> [#uses=3] - %A.284 = alloca %struct.string___XUB, align 8 ; <%struct.string___XUB*> [#uses=3] - %tmp25 = alloca %struct.string___XUP, align 8 ; <%struct.string___XUP*> [#uses=3] - call void @system__secondary_stack__ss_mark( %struct.system__secondary_stack__mark_id* %tmp sret ) - %tmp28 = getelementptr %struct.system__secondary_stack__mark_id* %tmp, i32 0, i32 0 ; <i8**> [#uses=1] - %tmp29 = load i8** %tmp28 ; <i8*> [#uses=2] - %tmp31 = getelementptr %struct.system__secondary_stack__mark_id* %tmp, i32 0, i32 1 ; <i32*> [#uses=1] - %tmp32 = load i32* %tmp31 ; <i32> [#uses=2] - %tmp33 = load i8* @report__test_status ; <i8> [#uses=1] - switch i8 %tmp33, label %bb483 [ - i8 0, label %bb - i8 2, label %bb143 - i8 3, label %bb261 - ] - -bb: ; preds = %entry - %tmp34 = load i32* @report__test_name_len ; <i32> [#uses=4] - %tmp35 = icmp sgt i32 %tmp34, 0 ; <i1> [#uses=2] - %tmp40 = icmp sgt i32 %tmp34, 15 ; <i1> [#uses=1] - %bothcond139 = and i1 %tmp35, %tmp40 ; <i1> [#uses=1] - br i1 %bothcond139, label %cond_true43, label %cond_next44 - -cond_true43: ; preds = %bb - invoke void @__gnat_rcheck_12( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 212 ) - to label %UnifiedUnreachableBlock unwind label %unwind - -unwind: ; preds = %invcont589, %cond_next567, %bb555, %cond_true497, %invcont249, %cond_next227, %bb215, %cond_true157, %invcont131, %cond_next109, %bb97, %cond_true43 - %eh_ptr = call i8* @llvm.eh.exception( ) ; <i8*> [#uses=1] - br label %cleanup717 - -cond_next44: ; preds = %bb - %tmp72 = getelementptr %struct.string___XUB* %A.210, i32 0, i32 0 ; <i32*> [#uses=1] - store i32 1, i32* %tmp72 - %tmp73 = getelementptr %struct.string___XUB* %A.210, i32 0, i32 1 ; <i32*> [#uses=1] - store i32 %tmp34, i32* %tmp73 - br i1 %tmp35, label %cond_true80, label %cond_next109 - -cond_true80: ; preds = %cond_next44 - %tmp45.off = add i32 %tmp34, -1 ; <i32> [#uses=1] - %bothcond = icmp ugt i32 %tmp45.off, 14 ; <i1> [#uses=1] - br i1 %bothcond, label %bb97, label %cond_next109 - -bb97: ; preds = %cond_true80 - invoke void @__gnat_rcheck_05( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 212 ) - to label %UnifiedUnreachableBlock unwind label %unwind - -cond_next109: ; preds = %cond_true80, %cond_next44 - %A.210128 = ptrtoint %struct.string___XUB* %A.210 to i32 ; <i32> [#uses=1] - %A.210128129 = zext i32 %A.210128 to i64 ; <i64> [#uses=1] - %A.210128129130 = shl i64 %A.210128129, 32 ; <i64> [#uses=1] - %A.210128129130.ins = or i64 %A.210128129130, zext (i32 ptrtoint ([15 x i8]* @report__test_name to i32) to i64) ; <i64> [#uses=1] - invoke void @system__string_ops_concat_3__str_concat_3( %struct.string___XUP* %tmp5 sret , i64 or (i64 zext (i32 ptrtoint ([5 x i8]* @.str17 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.81.900 to i32) to i64), i64 32)), i64 %A.210128129130.ins, i64 or (i64 zext (i32 ptrtoint ([37 x i8]* @.str16 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.209.1380 to i32) to i64), i64 32)) ) - to label %invcont131 unwind label %unwind - -invcont131: ; preds = %cond_next109 - %tmp133 = getelementptr %struct.string___XUP* %tmp5, i32 0, i32 0 ; <i8**> [#uses=1] - %tmp134 = load i8** %tmp133 ; <i8*> [#uses=1] - %tmp134120 = ptrtoint i8* %tmp134 to i32 ; <i32> [#uses=1] - %tmp134120121 = zext i32 %tmp134120 to i64 ; <i64> [#uses=1] - %tmp136 = getelementptr %struct.string___XUP* %tmp5, i32 0, i32 1 ; <%struct.string___XUB**> [#uses=1] - %tmp137 = load %struct.string___XUB** %tmp136 ; <%struct.string___XUB*> [#uses=1] - %tmp137116 = ptrtoint %struct.string___XUB* %tmp137 to i32 ; <i32> [#uses=1] - %tmp137116117 = zext i32 %tmp137116 to i64 ; <i64> [#uses=1] - %tmp137116117118 = shl i64 %tmp137116117, 32 ; <i64> [#uses=1] - %tmp137116117118.ins = or i64 %tmp137116117118, %tmp134120121 ; <i64> [#uses=1] - invoke fastcc void @report__put_msg( i64 %tmp137116117118.ins ) - to label %cond_next618 unwind label %unwind - -bb143: ; preds = %entry - %tmp144 = load i32* @report__test_name_len ; <i32> [#uses=4] - %tmp147 = icmp sgt i32 %tmp144, 0 ; <i1> [#uses=2] - %tmp154 = icmp sgt i32 %tmp144, 15 ; <i1> [#uses=1] - %bothcond140 = and i1 %tmp147, %tmp154 ; <i1> [#uses=1] - br i1 %bothcond140, label %cond_true157, label %cond_next160 - -cond_true157: ; preds = %bb143 - invoke void @__gnat_rcheck_12( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 215 ) - to label %UnifiedUnreachableBlock unwind label %unwind - -cond_next160: ; preds = %bb143 - %tmp189 = getelementptr %struct.string___XUB* %A.229, i32 0, i32 0 ; <i32*> [#uses=1] - store i32 1, i32* %tmp189 - %tmp190 = getelementptr %struct.string___XUB* %A.229, i32 0, i32 1 ; <i32*> [#uses=1] - store i32 %tmp144, i32* %tmp190 - br i1 %tmp147, label %cond_true197, label %cond_next227 - -cond_true197: ; preds = %cond_next160 - %tmp161.off = add i32 %tmp144, -1 ; <i32> [#uses=1] - %bothcond1 = icmp ugt i32 %tmp161.off, 14 ; <i1> [#uses=1] - br i1 %bothcond1, label %bb215, label %cond_next227 - -bb215: ; preds = %cond_true197 - invoke void @__gnat_rcheck_05( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 215 ) - to label %UnifiedUnreachableBlock unwind label %unwind - -cond_next227: ; preds = %cond_true197, %cond_next160 - %A.229105 = ptrtoint %struct.string___XUB* %A.229 to i32 ; <i32> [#uses=1] - %A.229105106 = zext i32 %A.229105 to i64 ; <i64> [#uses=1] - %A.229105106107 = shl i64 %A.229105106, 32 ; <i64> [#uses=1] - %A.229105106107.ins = or i64 %A.229105106107, zext (i32 ptrtoint ([15 x i8]* @report__test_name to i32) to i64) ; <i64> [#uses=1] - invoke void @system__string_ops_concat_3__str_concat_3( %struct.string___XUP* %tmp10 sret , i64 or (i64 zext (i32 ptrtoint ([5 x i8]* @.str19 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.81.900 to i32) to i64), i64 32)), i64 %A.229105106107.ins, i64 or (i64 zext (i32 ptrtoint ([37 x i8]* @.str18 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.209.1380 to i32) to i64), i64 32)) ) - to label %invcont249 unwind label %unwind - -invcont249: ; preds = %cond_next227 - %tmp251 = getelementptr %struct.string___XUP* %tmp10, i32 0, i32 0 ; <i8**> [#uses=1] - %tmp252 = load i8** %tmp251 ; <i8*> [#uses=1] - %tmp25297 = ptrtoint i8* %tmp252 to i32 ; <i32> [#uses=1] - %tmp2529798 = zext i32 %tmp25297 to i64 ; <i64> [#uses=1] - %tmp254 = getelementptr %struct.string___XUP* %tmp10, i32 0, i32 1 ; <%struct.string___XUB**> [#uses=1] - %tmp255 = load %struct.string___XUB** %tmp254 ; <%struct.string___XUB*> [#uses=1] - %tmp25593 = ptrtoint %struct.string___XUB* %tmp255 to i32 ; <i32> [#uses=1] - %tmp2559394 = zext i32 %tmp25593 to i64 ; <i64> [#uses=1] - %tmp255939495 = shl i64 %tmp2559394, 32 ; <i64> [#uses=1] - %tmp255939495.ins = or i64 %tmp255939495, %tmp2529798 ; <i64> [#uses=1] - invoke fastcc void @report__put_msg( i64 %tmp255939495.ins ) - to label %cond_next618 unwind label %unwind - -bb261: ; preds = %entry - %tmp262 = call i8* @llvm.stacksave( ) ; <i8*> [#uses=2] - %tmp263 = load i32* @report__test_name_len ; <i32> [#uses=4] - %tmp266 = icmp sgt i32 %tmp263, 0 ; <i1> [#uses=2] - %tmp273 = icmp sgt i32 %tmp263, 15 ; <i1> [#uses=1] - %bothcond141 = and i1 %tmp266, %tmp273 ; <i1> [#uses=1] - br i1 %bothcond141, label %cond_true276, label %cond_next281 - -cond_true276: ; preds = %bb261 - invoke void @__gnat_rcheck_12( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 218 ) - to label %UnifiedUnreachableBlock unwind label %unwind277 - -unwind277: ; preds = %invcont467, %cond_next442, %invcont370, %cond_next348, %bb336, %cond_true276 - %eh_ptr278 = call i8* @llvm.eh.exception( ) ; <i8*> [#uses=1] - call void @llvm.stackrestore( i8* %tmp262 ) - br label %cleanup717 - -cond_next281: ; preds = %bb261 - %tmp310 = getelementptr %struct.string___XUB* %A.248, i32 0, i32 0 ; <i32*> [#uses=1] - store i32 1, i32* %tmp310 - %tmp311 = getelementptr %struct.string___XUB* %A.248, i32 0, i32 1 ; <i32*> [#uses=1] - store i32 %tmp263, i32* %tmp311 - br i1 %tmp266, label %cond_true318, label %cond_next348 - -cond_true318: ; preds = %cond_next281 - %tmp282.off = add i32 %tmp263, -1 ; <i32> [#uses=1] - %bothcond2 = icmp ugt i32 %tmp282.off, 14 ; <i1> [#uses=1] - br i1 %bothcond2, label %bb336, label %cond_next348 - -bb336: ; preds = %cond_true318 - invoke void @__gnat_rcheck_05( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 218 ) - to label %UnifiedUnreachableBlock unwind label %unwind277 - -cond_next348: ; preds = %cond_true318, %cond_next281 - %A.24882 = ptrtoint %struct.string___XUB* %A.248 to i32 ; <i32> [#uses=1] - %A.2488283 = zext i32 %A.24882 to i64 ; <i64> [#uses=1] - %A.248828384 = shl i64 %A.2488283, 32 ; <i64> [#uses=1] - %A.248828384.ins = or i64 %A.248828384, zext (i32 ptrtoint ([15 x i8]* @report__test_name to i32) to i64) ; <i64> [#uses=1] - invoke void @system__string_ops_concat_3__str_concat_3( %struct.string___XUP* %tmp15 sret , i64 or (i64 zext (i32 ptrtoint ([5 x i8]* @.str21 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.81.900 to i32) to i64), i64 32)), i64 %A.248828384.ins, i64 or (i64 zext (i32 ptrtoint ([37 x i8]* @.str20 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.209.1380 to i32) to i64), i64 32)) ) - to label %invcont370 unwind label %unwind277 - -invcont370: ; preds = %cond_next348 - %tmp372 = getelementptr %struct.string___XUP* %tmp15, i32 0, i32 0 ; <i8**> [#uses=1] - %tmp373 = load i8** %tmp372 ; <i8*> [#uses=1] - %tmp37374 = ptrtoint i8* %tmp373 to i32 ; <i32> [#uses=1] - %tmp3737475 = zext i32 %tmp37374 to i64 ; <i64> [#uses=1] - %tmp375 = getelementptr %struct.string___XUP* %tmp15, i32 0, i32 1 ; <%struct.string___XUB**> [#uses=1] - %tmp376 = load %struct.string___XUB** %tmp375 ; <%struct.string___XUB*> [#uses=1] - %tmp37670 = ptrtoint %struct.string___XUB* %tmp376 to i32 ; <i32> [#uses=1] - %tmp3767071 = zext i32 %tmp37670 to i64 ; <i64> [#uses=1] - %tmp376707172 = shl i64 %tmp3767071, 32 ; <i64> [#uses=1] - %tmp376707172.ins = or i64 %tmp376707172, %tmp3737475 ; <i64> [#uses=1] - invoke fastcc void @report__put_msg( i64 %tmp376707172.ins ) - to label %invcont381 unwind label %unwind277 - -invcont381: ; preds = %invcont370 - %tmp382 = load i32* @report__test_name_len ; <i32> [#uses=6] - %tmp415 = icmp sgt i32 %tmp382, -1 ; <i1> [#uses=1] - %max416 = select i1 %tmp415, i32 %tmp382, i32 0 ; <i32> [#uses=1] - %tmp417 = alloca i8, i32 %max416 ; <i8*> [#uses=3] - %tmp423 = icmp sgt i32 %tmp382, 0 ; <i1> [#uses=1] - br i1 %tmp423, label %bb427, label %cond_next442 - -bb427: ; preds = %invcont381 - store i8 32, i8* %tmp417 - %tmp434 = icmp eq i32 %tmp382, 1 ; <i1> [#uses=1] - br i1 %tmp434, label %cond_next442, label %cond_next438.preheader - -cond_next438.preheader: ; preds = %bb427 - %tmp. = add i32 %tmp382, -1 ; <i32> [#uses=1] - br label %cond_next438 - -cond_next438: ; preds = %cond_next438, %cond_next438.preheader - %indvar = phi i32 [ 0, %cond_next438.preheader ], [ %J130b.513.5, %cond_next438 ] ; <i32> [#uses=1] - %J130b.513.5 = add i32 %indvar, 1 ; <i32> [#uses=3] - %tmp43118 = getelementptr i8* %tmp417, i32 %J130b.513.5 ; <i8*> [#uses=1] - store i8 32, i8* %tmp43118 - %exitcond = icmp eq i32 %J130b.513.5, %tmp. ; <i1> [#uses=1] - br i1 %exitcond, label %cond_next442, label %cond_next438 - -cond_next442: ; preds = %cond_next438, %bb427, %invcont381 - %tmp448 = getelementptr %struct.string___XUB* %A.270, i32 0, i32 0 ; <i32*> [#uses=1] - store i32 1, i32* %tmp448 - %tmp449 = getelementptr %struct.string___XUB* %A.270, i32 0, i32 1 ; <i32*> [#uses=1] - store i32 %tmp382, i32* %tmp449 - %tmp41762 = ptrtoint i8* %tmp417 to i32 ; <i32> [#uses=1] - %tmp4176263 = zext i32 %tmp41762 to i64 ; <i64> [#uses=1] - %A.27058 = ptrtoint %struct.string___XUB* %A.270 to i32 ; <i32> [#uses=1] - %A.2705859 = zext i32 %A.27058 to i64 ; <i64> [#uses=1] - %A.270585960 = shl i64 %A.2705859, 32 ; <i64> [#uses=1] - %A.270585960.ins = or i64 %tmp4176263, %A.270585960 ; <i64> [#uses=1] - invoke void @system__string_ops_concat_3__str_concat_3( %struct.string___XUP* %tmp20 sret , i64 or (i64 zext (i32 ptrtoint ([5 x i8]* @.str21 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.81.900 to i32) to i64), i64 32)), i64 %A.270585960.ins, i64 or (i64 zext (i32 ptrtoint ([37 x i8]* @.str22 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.209.1380 to i32) to i64), i64 32)) ) - to label %invcont467 unwind label %unwind277 - -invcont467: ; preds = %cond_next442 - %tmp469 = getelementptr %struct.string___XUP* %tmp20, i32 0, i32 0 ; <i8**> [#uses=1] - %tmp470 = load i8** %tmp469 ; <i8*> [#uses=1] - %tmp47050 = ptrtoint i8* %tmp470 to i32 ; <i32> [#uses=1] - %tmp4705051 = zext i32 %tmp47050 to i64 ; <i64> [#uses=1] - %tmp472 = getelementptr %struct.string___XUP* %tmp20, i32 0, i32 1 ; <%struct.string___XUB**> [#uses=1] - %tmp473 = load %struct.string___XUB** %tmp472 ; <%struct.string___XUB*> [#uses=1] - %tmp47346 = ptrtoint %struct.string___XUB* %tmp473 to i32 ; <i32> [#uses=1] - %tmp4734647 = zext i32 %tmp47346 to i64 ; <i64> [#uses=1] - %tmp473464748 = shl i64 %tmp4734647, 32 ; <i64> [#uses=1] - %tmp473464748.ins = or i64 %tmp473464748, %tmp4705051 ; <i64> [#uses=1] - invoke fastcc void @report__put_msg( i64 %tmp473464748.ins ) - to label %cleanup unwind label %unwind277 - -cleanup: ; preds = %invcont467 - call void @llvm.stackrestore( i8* %tmp262 ) - br label %cond_next618 - -bb483: ; preds = %entry - %tmp484 = load i32* @report__test_name_len ; <i32> [#uses=4] - %tmp487 = icmp sgt i32 %tmp484, 0 ; <i1> [#uses=2] - %tmp494 = icmp sgt i32 %tmp484, 15 ; <i1> [#uses=1] - %bothcond142 = and i1 %tmp487, %tmp494 ; <i1> [#uses=1] - br i1 %bothcond142, label %cond_true497, label %cond_next500 - -cond_true497: ; preds = %bb483 - invoke void @__gnat_rcheck_12( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 223 ) - to label %UnifiedUnreachableBlock unwind label %unwind - -cond_next500: ; preds = %bb483 - %tmp529 = getelementptr %struct.string___XUB* %A.284, i32 0, i32 0 ; <i32*> [#uses=1] - store i32 1, i32* %tmp529 - %tmp530 = getelementptr %struct.string___XUB* %A.284, i32 0, i32 1 ; <i32*> [#uses=1] - store i32 %tmp484, i32* %tmp530 - br i1 %tmp487, label %cond_true537, label %cond_next567 - -cond_true537: ; preds = %cond_next500 - %tmp501.off = add i32 %tmp484, -1 ; <i32> [#uses=1] - %bothcond3 = icmp ugt i32 %tmp501.off, 14 ; <i1> [#uses=1] - br i1 %bothcond3, label %bb555, label %cond_next567 - -bb555: ; preds = %cond_true537 - invoke void @__gnat_rcheck_05( i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0), i32 223 ) - to label %UnifiedUnreachableBlock unwind label %unwind - -cond_next567: ; preds = %cond_true537, %cond_next500 - %A.28435 = ptrtoint %struct.string___XUB* %A.284 to i32 ; <i32> [#uses=1] - %A.2843536 = zext i32 %A.28435 to i64 ; <i64> [#uses=1] - %A.284353637 = shl i64 %A.2843536, 32 ; <i64> [#uses=1] - %A.284353637.ins = or i64 %A.284353637, zext (i32 ptrtoint ([15 x i8]* @report__test_name to i32) to i64) ; <i64> [#uses=1] - invoke void @system__string_ops_concat_3__str_concat_3( %struct.string___XUP* %tmp25 sret , i64 or (i64 zext (i32 ptrtoint ([5 x i8]* @.str24 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.81.900 to i32) to i64), i64 32)), i64 %A.284353637.ins, i64 or (i64 zext (i32 ptrtoint ([37 x i8]* @.str23 to i32) to i64), i64 shl (i64 zext (i32 ptrtoint (%struct.string___XUB* @C.209.1380 to i32) to i64), i64 32)) ) - to label %invcont589 unwind label %unwind - -invcont589: ; preds = %cond_next567 - %tmp591 = getelementptr %struct.string___XUP* %tmp25, i32 0, i32 0 ; <i8**> [#uses=1] - %tmp592 = load i8** %tmp591 ; <i8*> [#uses=1] - %tmp59228 = ptrtoint i8* %tmp592 to i32 ; <i32> [#uses=1] - %tmp5922829 = zext i32 %tmp59228 to i64 ; <i64> [#uses=1] - %tmp594 = getelementptr %struct.string___XUP* %tmp25, i32 0, i32 1 ; <%struct.string___XUB**> [#uses=1] - %tmp595 = load %struct.string___XUB** %tmp594 ; <%struct.string___XUB*> [#uses=1] - %tmp59524 = ptrtoint %struct.string___XUB* %tmp595 to i32 ; <i32> [#uses=1] - %tmp5952425 = zext i32 %tmp59524 to i64 ; <i64> [#uses=1] - %tmp595242526 = shl i64 %tmp5952425, 32 ; <i64> [#uses=1] - %tmp595242526.ins = or i64 %tmp595242526, %tmp5922829 ; <i64> [#uses=1] - invoke fastcc void @report__put_msg( i64 %tmp595242526.ins ) - to label %cond_next618 unwind label %unwind - -cond_next618: ; preds = %invcont589, %cleanup, %invcont249, %invcont131 - store i8 1, i8* @report__test_status - store i32 7, i32* @report__test_name_len - store i8 78, i8* getelementptr ([15 x i8]* @report__test_name, i32 0, i32 0) - store i8 79, i8* getelementptr ([15 x i8]* @report__test_name, i32 0, i32 1) - store i8 95, i8* getelementptr ([15 x i8]* @report__test_name, i32 0, i32 2) - store i8 78, i8* getelementptr ([15 x i8]* @report__test_name, i32 0, i32 3) - store i8 65, i8* getelementptr ([15 x i8]* @report__test_name, i32 0, i32 4) - store i8 77, i8* getelementptr ([15 x i8]* @report__test_name, i32 0, i32 5) - store i8 69, i8* getelementptr ([15 x i8]* @report__test_name, i32 0, i32 6) - %CHAIN.310.0.0.0.val5.i = ptrtoint i8* %tmp29 to i32 ; <i32> [#uses=1] - %CHAIN.310.0.0.0.val56.i = zext i32 %CHAIN.310.0.0.0.val5.i to i64 ; <i64> [#uses=1] - %CHAIN.310.0.0.1.val2.i = zext i32 %tmp32 to i64 ; <i64> [#uses=1] - %CHAIN.310.0.0.1.val23.i = shl i64 %CHAIN.310.0.0.1.val2.i, 32 ; <i64> [#uses=1] - %CHAIN.310.0.0.1.val23.ins.i = or i64 %CHAIN.310.0.0.1.val23.i, %CHAIN.310.0.0.0.val56.i ; <i64> [#uses=1] - call void @system__secondary_stack__ss_release( i64 %CHAIN.310.0.0.1.val23.ins.i ) - ret void - -cleanup717: ; preds = %unwind277, %unwind - %eh_exception.0 = phi i8* [ %eh_ptr278, %unwind277 ], [ %eh_ptr, %unwind ] ; <i8*> [#uses=1] - %CHAIN.310.0.0.0.val5.i8 = ptrtoint i8* %tmp29 to i32 ; <i32> [#uses=1] - %CHAIN.310.0.0.0.val56.i9 = zext i32 %CHAIN.310.0.0.0.val5.i8 to i64 ; <i64> [#uses=1] - %CHAIN.310.0.0.1.val2.i10 = zext i32 %tmp32 to i64 ; <i64> [#uses=1] - %CHAIN.310.0.0.1.val23.i11 = shl i64 %CHAIN.310.0.0.1.val2.i10, 32 ; <i64> [#uses=1] - %CHAIN.310.0.0.1.val23.ins.i12 = or i64 %CHAIN.310.0.0.1.val23.i11, %CHAIN.310.0.0.0.val56.i9 ; <i64> [#uses=1] - call void @system__secondary_stack__ss_release( i64 %CHAIN.310.0.0.1.val23.ins.i12 ) - call i32 (...)* @_Unwind_Resume( i8* %eh_exception.0 ) ; <i32>:0 [#uses=0] - unreachable - -UnifiedUnreachableBlock: ; preds = %bb555, %cond_true497, %bb336, %cond_true276, %bb215, %cond_true157, %bb97, %cond_true43 - unreachable -} - -declare i8* @llvm.stacksave() - -declare void @llvm.stackrestore(i8*) - -declare i32 @report__ident_int(i32 %x) - -declare i8 @report__equal(i32 %x, i32 %y) - -declare i8 @report__ident_char(i8 zeroext %x) - -declare i16 @report__ident_wide_char(i16 zeroext %x) - -declare i8 @report__ident_bool(i8 %x) - -declare void @report__ident_str(%struct.string___XUP* sret %agg.result, i64 %x.0.0) - -declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) - -declare void @report__ident_wide_str(%struct.wide_string___XUP* sret %agg.result, i64 %x.0.0) - -declare void @__gnat_begin_handler(i8*) - -declare void @__gnat_end_handler(i8*) - -declare void @report__legal_file_name(%struct.string___XUP* sret %agg.result, i32 %x, i64 %nam.0.0) - -declare void @__gnat_rcheck_06(i8*, i32) - -declare void @system__string_ops__str_concat_cs(%struct.string___XUP* sret , i8 zeroext , i64) diff --git a/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll b/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll index 3cd8052a73..62624a7e34 100644 --- a/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll +++ b/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 | not grep movl -define i8 @t(i8 zeroext %x, i8 zeroext %y) zeroext { +define zeroext i8 @t(i8 zeroext %x, i8 zeroext %y) { %tmp2 = add i8 %x, 2 %tmp4 = add i8 %y, -2 %tmp5 = mul i8 %tmp4, %tmp2 diff --git a/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll b/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll index e93092f355..77291f063b 100644 --- a/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll +++ b/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll @@ -2,7 +2,7 @@ @X = global i32 0 ; <i32*> [#uses=1] -define i8 @_Z3fooi(i32 %x) signext { +define signext i8 @_Z3fooi(i32 %x) { entry: store i32 %x, i32* @X, align 4 %retval67 = trunc i32 %x to i8 ; <i8> [#uses=1] diff --git a/test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll b/test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll index 1e43272a84..8518d4c568 100644 --- a/test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll +++ b/test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll @@ -26,7 +26,7 @@ [1 x %struct._objc_method] [ %struct._objc_method { %struct.objc_selector* bitcast ([12 x i8]* @"\01L_OBJC_METH_VAR_NAME_0" to %struct.objc_selector*), i8* getelementptr ([7 x i8]* @"\01L_OBJC_METH_VAR_TYPE_0", i32 0, i32 0), - i8* bitcast (i8 (%struct.NSString*, %struct.objc_selector*) signext * @"-[NSString(local) isNullOrNil]" to i8*) } ] }, section "__OBJC,__cat_inst_meth,regular,no_dead_strip" ; <{ i32, i32, [1 x %struct._objc_method] }*> [#uses=3] + i8* bitcast (i8 (%struct.NSString*, %struct.objc_selector*) * @"-[NSString(local) isNullOrNil]" to i8*) } ] }, section "__OBJC,__cat_inst_meth,regular,no_dead_strip" ; <{ i32, i32, [1 x %struct._objc_method] }*> [#uses=3] @"\01L_OBJC_CATEGORY_NSString_local" = internal global { i8*, i8*, %struct._objc_method_list*, i32, i32, i32, i32 } { i8* getelementptr ([6 x i8]* @"\01L_OBJC_CLASS_NAME_0", i32 0, i32 0), i8* getelementptr ([9 x i8]* @"\01L_OBJC_CLASS_NAME_1", i32 0, i32 0), @@ -51,7 +51,7 @@ @"\01L_OBJC_METH_VAR_TYPE_0" = internal global [7 x i8] c"c8@0:4\00", section "__TEXT,__cstring,cstring_literals" ; <[7 x i8]*> [#uses=2] @llvm.used = appending global [11 x i8*] [ i8* bitcast ({ i32, i32, i16, i16, [1 x %struct._objc_category*] }* @"\01L_OBJC_SYMBOLS" to i8*), i8* bitcast ({ i32, i32, [1 x %struct._objc_method] }* @"\01L_OBJC_CATEGORY_INSTANCE_METHODS_NSString_local" to i8*), i8* bitcast ({ i8*, i8*, %struct._objc_method_list*, i32, i32, i32, i32 }* @"\01L_OBJC_CATEGORY_NSString_local" to i8*), i8* bitcast ([2 x i32]* @"\01L_OBJC_IMAGE_INFO" to i8*), i8* bitcast (%struct._objc_module* @"\01L_OBJC_MODULES" to i8*), i8* bitcast (i32* @"\01.objc_category_name_NSString_local" to i8*), i8* getelementptr ([1 x i8]* @"\01L_OBJC_CLASS_NAME_2", i32 0, i32 0), i8* getelementptr ([9 x i8]* @"\01L_OBJC_CLASS_NAME_1", i32 0, i32 0), i8* getelementptr ([6 x i8]* @"\01L_OBJC_CLASS_NAME_0", i32 0, i32 0), i8* getelementptr ([12 x i8]* @"\01L_OBJC_METH_VAR_NAME_0", i32 0, i32 0), i8* getelementptr ([7 x i8]* @"\01L_OBJC_METH_VAR_TYPE_0", i32 0, i32 0) ], section "llvm.metadata" ; <[11 x i8*]*> [#uses=0] -define internal i8 @"-[NSString(local) isNullOrNil]"(%struct.NSString* %self, %struct.objc_selector* %_cmd) signext { +define internal signext i8 @"-[NSString(local) isNullOrNil]"(%struct.NSString* %self, %struct.objc_selector* %_cmd) { entry: %self_addr = alloca %struct.NSString* ; <%struct.NSString**> [#uses=1] %_cmd_addr = alloca %struct.objc_selector* ; <%struct.objc_selector**> [#uses=1] diff --git a/test/CodeGen/X86/2007-10-05-3AddrConvert.ll b/test/CodeGen/X86/2007-10-05-3AddrConvert.ll deleted file mode 100644 index 2c2706de5d..0000000000 --- a/test/CodeGen/X86/2007-10-05-3AddrConvert.ll +++ /dev/null @@ -1,48 +0,0 @@ -; RUN: llc < %s -march=x86 | grep lea - - %struct.anon = type { [3 x double], double, %struct.node*, [64 x %struct.bnode*], [64 x %struct.bnode*] } - %struct.bnode = type { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x double], double, %struct.bnode*, %struct.bnode* } - %struct.node = type { i16, double, [3 x double], i32, i32 } - -define i32 @main(i32 %argc, i8** nocapture %argv) nounwind { -entry: - %0 = malloc %struct.anon ; <%struct.anon*> [#uses=2] - %1 = getelementptr %struct.anon* %0, i32 0, i32 2 ; <%struct.node**> [#uses=1] - br label %bb14.i - -bb14.i: ; preds = %bb14.i, %entry - %i8.0.reg2mem.0.i = phi i32 [ 0, %entry ], [ %2, %bb14.i ] ; <i32> [#uses=1] - %2 = add i32 %i8.0.reg2mem.0.i, 1 ; <i32> [#uses=2] - %exitcond74.i = icmp eq i32 %2, 32 ; <i1> [#uses=1] - br i1 %exitcond74.i, label %bb32.i, label %bb14.i - -bb32.i: ; preds = %bb32.i, %bb14.i - %tmp.0.reg2mem.0.i = phi i32 [ %indvar.next63.i, %bb32.i ], [ 0, %bb14.i ] ; <i32> [#uses=1] - %indvar.next63.i = add i32 %tmp.0.reg2mem.0.i, 1 ; <i32> [#uses=2] - %exitcond64.i = icmp eq i32 %indvar.next63.i, 64 ; <i1> [#uses=1] - br i1 %exitcond64.i, label %bb47.loopexit.i, label %bb32.i - -bb.i.i: ; preds = %bb47.loopexit.i - unreachable - -stepsystem.exit.i: ; preds = %bb47.loopexit.i - store %struct.node* null, %struct.node** %1, align 4 - br label %bb.i6.i - -bb.i6.i: ; preds = %bb.i6.i, %stepsystem.exit.i - %tmp.0.i.i = add i32 0, -1 ; <i32> [#uses=1] - %3 = icmp slt i32 %tmp.0.i.i, 0 ; <i1> [#uses=1] - br i1 %3, label %bb107.i.i, label %bb.i6.i - -bb107.i.i: ; preds = %bb107.i.i, %bb.i6.i - %q_addr.0.i.i.in = phi %struct.bnode** [ null, %bb107.i.i ], [ %4, %bb.i6.i ] ; <%struct.bnode**> [#uses=1] - %q_addr.0.i.i = load %struct.bnode** %q_addr.0.i.i.in ; <%struct.bnode*> [#uses=1] - %q_addr.1 = getelementptr %struct.anon* %0, i32 0, i32 4, i32 1 - store %struct.bnode* %q_addr.0.i.i, %struct.bnode** %q_addr.1, align 4 - br label %bb107.i.i - -bb47.loopexit.i: ; preds = %bb32.i - %4 = getelementptr %struct.anon* %0, i32 0, i32 4, i32 0 ; <%struct.bnode**> [#uses=1] - %5 = icmp eq %struct.node* null, null ; <i1> [#uses=1] - br i1 %5, label %stepsystem.exit.i, label %bb.i.i -} diff --git a/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll b/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll index db13fde9f6..8091bd1bc1 100644 --- a/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll +++ b/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 | not grep movb -define i16 @f(i32* %bp, i32* %ss) signext { +define signext i16 @f(i32* %bp, i32* %ss) { entry: br label %cond_next127 diff --git a/test/CodeGen/X86/2007-10-12-SpillerUnfold2.ll b/test/CodeGen/X86/2007-10-12-SpillerUnfold2.ll index a3872ad47e..7a3d72dd4b 100644 --- a/test/CodeGen/X86/2007-10-12-SpillerUnfold2.ll +++ b/test/CodeGen/X86/2007-10-12-SpillerUnfold2.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 | grep sarl | not grep esp -define i16 @t(i16* %qmatrix, i16* %dct, i16* %acBaseTable, i16* %acExtTable, i16 signext %acBaseRes, i16 signext %acMaskRes, i16 signext %acExtRes, i32* %bitptr, i32* %source, i32 %markerPrefix, i8** %byteptr, i32 %scale, i32 %round, i32 %bits) signext { +define signext i16 @t(i16* %qmatrix, i16* %dct, i16* %acBaseTable, i16* %acExtTable, i16 signext %acBaseRes, i16 signext %acMaskRes, i16 signext %acExtRes, i32* %bitptr, i32* %source, i32 %markerPrefix, i8** %byteptr, i32 %scale, i32 %round, i32 %bits) { entry: br label %cond_next127 diff --git a/test/CodeGen/X86/2007-10-15-CoalescerCrash.ll b/test/CodeGen/X86/2007-10-15-CoalescerCrash.ll index 1e4ae84645..c68628d1f7 100644 --- a/test/CodeGen/X86/2007-10-15-CoalescerCrash.ll +++ b/test/CodeGen/X86/2007-10-15-CoalescerCrash.ll @@ -362,7 +362,7 @@ bb1159: ; preds = %cond_next1150 cond_true1169: ; preds = %bb1159 %tmp11741175 = trunc i64 %lsum.11225.0 to i32 ; <i32> [#uses=1] - %tmp1178 = tail call i32 (%struct._IO_FILE* noalias , i8* noalias , ...)* @fprintf( %struct._IO_FILE* %file noalias , i8* getelementptr ([49 x i8]* @.str32, i32 0, i64 0) noalias , i32 %tmp11741175, i32 0 ) ; <i32> [#uses=0] + %tmp1178 = tail call i32 (%struct._IO_FILE* noalias , i8* noalias , ...)* @fprintf( %struct._IO_FILE* noalias %file , i8* getelementptr ([49 x i8]* @.str32, i32 0, i64 0) , i32 %tmp11741175, i32 0 ) ; <i32> [#uses=0] ret void UnifiedReturnBlock: ; preds = %bb1159 @@ -379,9 +379,9 @@ declare i32 @reg_preferred_class(i32) declare i32 @reg_alternate_class(i32) -declare i8 @maybe_hot_bb_p(%struct.basic_block_def*) zeroext +declare zeroext i8 @maybe_hot_bb_p(%struct.basic_block_def*) -declare i8 @probably_never_executed_bb_p(%struct.basic_block_def*) zeroext +declare zeroext i8 @probably_never_executed_bb_p(%struct.basic_block_def*) declare void @dump_regset(%struct.bitmap_head_def*, %struct._IO_FILE*) diff --git a/test/CodeGen/X86/2007-10-19-SpillerUnfold.ll b/test/CodeGen/X86/2007-10-19-SpillerUnfold.ll index 600bd1f178..d3120f3e0e 100644 --- a/test/CodeGen/X86/2007-10-19-SpillerUnfold.ll +++ b/test/CodeGen/X86/2007-10-19-SpillerUnfold.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | grep inc | not grep PTR -define i16 @t(i32* %bitptr, i32* %source, i8** %byteptr, i32 %scale, i32 %round) signext { +define signext i16 @t(i32* %bitptr, i32* %source, i8** %byteptr, i32 %scale, i32 %round) { entry: br label %bb diff --git a/test/CodeGen/X86/2007-10-29-ExtendSetCC.ll b/test/CodeGen/X86/2007-10-29-ExtendSetCC.ll index 86d3bbf4f4..573a2177b7 100644 --- a/test/CodeGen/X86/2007-10-29-ExtendSetCC.ll +++ b/test/CodeGen/X86/2007-10-29-ExtendSetCC.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 | grep mov | count 1 -define i16 @t() signext { +define signext i16 @t() { entry: %tmp180 = load i16* null, align 2 ; <i16> [#uses=3] %tmp180181 = sext i16 %tmp180 to i32 ; <i32> [#uses=1] diff --git a/test/CodeGen/X86/2007-11-02-BadAsm.ll b/test/CodeGen/X86/2007-11-02-BadAsm.ll deleted file mode 100644 index 4e11cda92e..0000000000 --- a/test/CodeGen/X86/2007-11-02-BadAsm.ll +++ /dev/null @@ -1,144 +0,0 @@ -; RUN: llc < %s -mtriple=x86_64-apple-darwin | grep movl | not grep rax - - %struct.color_sample = type { i64 } - %struct.gs_matrix = type { float, i64, float, i64, float, i64, float, i64, float, i64, float, i64 } - %struct.ref = type { %struct.color_sample, i16, i16 } - %struct.status = type { %struct.gs_matrix, i8*, i32, i32, i8*, i32, i32, i32, i32, i32, i32, i32 } - -define i32 @ztype1imagepath(%struct.ref* %op) { -entry: - br i1 false, label %cond_next, label %UnifiedReturnBlock - -cond_next: ; preds = %entry - br i1 false, label %cond_next68, label %UnifiedReturnBlock - -cond_next68: ; preds = %cond_next - %tmp5.i.i = malloc i8, i32 0 ; <i8*> [#uses=2] - br i1 false, label %bb81.outer.i, label %xit.i - -bb81.outer.i: ; preds = %bb87.i, %cond_next68 - %tmp67.i = add i32 0, 1 ; <i32> [#uses=1] - br label %bb81.i - -bb61.i: ; preds = %bb81.i - %tmp71.i = getelementptr i8* %tmp5.i.i, i64 0 ; <i8*> [#uses=1] - %tmp72.i = load i8* %tmp71.i, align 1 ; <i8> [#uses=1] - %tmp73.i = icmp eq i8 %tmp72.i, 0 ; <i1> [#uses=1] - br i1 %tmp73.i, label %bb81.i, label %xit.i - -bb81.i: ; preds = %bb61.i, %bb81.outer.i - br i1 false, label %bb87.i, label %bb61.i - -bb87.i: ; preds = %bb81.i - br i1 false, label %bb81.outer.i, label %xit.i - -xit.i: ; preds = %bb87.i, %bb61.i, %cond_next68 - %lsbx.0.reg2mem.1.i = phi i32 [ 0, %cond_next68 ], [ 0, %bb61.i ], [ %tmp67.i, %bb87.i ] ; <i32> [#uses=1] - %tmp6162.i.i = fptrunc double 0.000000e+00 to float ; <float> [#uses=1] - %tmp67.i15.i = fptrunc double 0.000000e+00 to float ; <float> [#uses=1] - %tmp24.i27.i = icmp eq i64 0, 0 ; <i1> [#uses=1] - br i1 %tmp24.i27.i, label %cond_next.i79.i, label %cond_true.i34.i - -cond_true.i34.i: ; preds = %xit.i - ret i32 0 - -cond_next.i79.i: ; preds = %xit.i - %phitmp167.i = fptosi double 0.000000e+00 to i64 ; <i64> [#uses=1] - %tmp142143.i = fpext float %tmp6162.i.i to double ; <double> [#uses=1] - %tmp2.i139.i = fadd double %tmp142143.i, 5.000000e-01 ; <double> [#uses=1] - %tmp23.i140.i = fptosi double %tmp2.i139.i to i64 ; <i64> [#uses=1] - br i1 false, label %cond_true.i143.i, label %round_coord.exit148.i - -cond_true.i143.i: ; preds = %cond_next.i79.i - %tmp8.i142.i = icmp sgt i64 %tmp23.i140.i, -32768 ; <i1> [#uses=1] - br i1 %tmp8.i142.i, label %cond_true11.i145.i, label %round_coord.exit148.i - -cond_true11.i145.i: ; preds = %cond_true.i143.i - ret i32 0 - -round_coord.exit148.i: ; preds = %cond_true.i143.i, %cond_next.i79.i - %tmp144149.i = phi i32 [ 32767, %cond_next.i79.i ], [ -32767, %cond_true.i143.i ] ; <i32> [#uses=1] - store i32 %tmp144149.i, i32* null, align 8 - %tmp147148.i = fpext float %tmp67.i15.i to double ; <double> [#uses=1] - %tmp2.i128.i = fadd double %tmp147148.i, 5.000000e-01 ; <double> [#uses=1] - %tmp23.i129.i = fptosi double %tmp2.i128.i to i64 ; <i64> [#uses=2] - %tmp5.i130.i = icmp slt i64 %tmp23.i129.i, 32768 ; <i1> [#uses=1] - br i1 %tmp5.i130.i, label %cond_true.i132.i, label %round_coord.exit137.i - -cond_true.i132.i: ; preds = %round_coord.exit148.i - %tmp8.i131.i = icmp sgt i64 %tmp23.i129.i, -32768 ; <i1> [#uses=1] - br i1 %tmp8.i131.i, label %cond_true11.i134.i, label %round_coord.exit137.i - -cond_true11.i134.i: ; preds = %cond_true.i132.i - br label %round_coord.exit137.i - -round_coord.exit137.i: ; preds = %cond_true11.i134.i, %cond_true.i132.i, %round_coord.exit148.i - %tmp149138.i = phi i32 [ 0, %cond_true11.i134.i ], [ 32767, %round_coord.exit148.i ], [ -32767, %cond_true.i132.i ] ; <i32> [#uses=1] - br i1 false, label %cond_true.i121.i, label %round_coord.exit126.i - -cond_true.i121.i: ; preds = %round_coord.exit137.i - br i1 false, label %cond_true11.i123.i, label %round_coord.exit126.i - -cond_true11.i123.i: ; preds = %cond_true.i121.i - br label %round_coord.exit126.i - -round_coord.exit126.i: ; preds = %cond_true11.i123.i, %cond_true.i121.i, %round_coord.exit137.i - %tmp153127.i = phi i32 [ 0, %cond_true11.i123.i ], [ 32767, %round_coord.exit137.i ], [ -32767, %cond_true.i121.i ] ; <i32> [#uses=1] - br i1 false, label %cond_true.i110.i, label %round_coord.exit115.i - -cond_true.i110.i: ; preds = %round_coord.exit126.i - br i1 false, label %cond_true11.i112.i, label %round_coord.exit115.i - -cond_true11.i112.i: ; preds = %cond_true.i110.i - br label %round_coord.exit115.i - -round_coord.exit115.i: ; preds = %cond_true11.i112.i, %cond_true.i110.i, %round_coord.exit126.i - %tmp157116.i = phi i32 [ 0, %cond_true11.i112.i ], [ 32767, %round_coord.exit126.i ], [ -32767, %cond_true.i110.i ] ; <i32> [#uses=2] - br i1 false, label %cond_true.i99.i, label %round_coord.exit104.i - -cond_true.i99.i: ; preds = %round_coord.exit115.i - br i1 false, label %cond_true11.i101.i, label %round_coord.exit104.i - -cond_true11.i101.i: ; preds = %cond_true.i99.i - %tmp1213.i100.i = trunc i64 %phitmp167.i to i32 ; <i32> [#uses=1] - br label %cond_next172.i - -round_coord.exit104.i: ; preds = %cond_true.i99.i, %round_coord.exit115.i - %UnifiedRetVal.i102.i = phi i32 [ 32767, %round_coord.exit115.i ], [ -32767, %cond_true.i99.i ] ; <i32> [#uses=1] - %tmp164.i = call fastcc i32 @put_int( %struct.status* null, i32 %tmp157116.i ) ; <i32> [#uses=0] - br label %cond_next172.i - -cond_next172.i: ; preds = %round_coord.exit104.i, %cond_true11.i101.i - %tmp161105.reg2mem.0.i = phi i32 [ %tmp1213.i100.i, %cond_true11.i101.i ], [ %UnifiedRetVal.i102.i, %round_coord.exit104.i ] ; <i32> [#uses=1] - %tmp174.i = icmp eq i32 %tmp153127.i, 0 ; <i1> [#uses=1] - %bothcond.i = and i1 false, %tmp174.i ; <i1> [#uses=1] - %tmp235.i = call fastcc i32 @put_int( %struct.status* null, i32 %tmp149138.i ) ; <i32> [#uses=0] - %tmp245.i = load i8** null, align 8 ; <i8*> [#uses=2] - %tmp246.i = getelementptr i8* %tmp245.i, i64 1 ; <i8*> [#uses=1] - br i1 %bothcond.i, label %cond_next254.i, label %bb259.i - -cond_next254.i: ; preds = %cond_next172.i - store i8 13, i8* %tmp245.i, align 1 - br label %bb259.i - -bb259.i: ; preds = %cond_next254.i, %cond_next172.i - %storemerge.i = phi i8* [ %tmp246.i, %cond_next254.i ], [ null, %cond_next172.i ] ; <i8*> [#uses=0] - %tmp261.i = shl i32 %lsbx.0.reg2mem.1.i, 2 ; <i32> [#uses=1] - store i32 %tmp261.i, i32* null, align 8 - %tmp270.i = add i32 0, %tmp157116.i ; <i32> [#uses=1] - store i32 %tmp270.i, i32* null, align 8 - %tmp275.i = add i32 0, %tmp161105.reg2mem.0.i ; <i32> [#uses=0] - br i1 false, label %trace_cells.exit.i, label %bb.preheader.i.i - -bb.preheader.i.i: ; preds = %bb259.i - ret i32 0 - -trace_cells.exit.i: ; preds = %bb259.i - free i8* %tmp5.i.i - ret i32 0 - -UnifiedReturnBlock: ; preds = %cond_next, %entry - ret i32 -20 -} - -declare fastcc i32 @put_int(%struct.status*, i32) diff --git a/test/CodeGen/X86/2007-12-11-FoldImpDefSpill.ll b/test/CodeGen/X86/2007-12-11-FoldImpDefSpill.ll deleted file mode 100644 index ca995cc3f6..0000000000 --- a/test/CodeGen/X86/2007-12-11-FoldImpDefSpill.ll +++ /dev/null @@ -1,680 +0,0 @@ -; RUN: llc < %s -mtriple=i686-apple-darwin | not grep IMPLICIT_DEF - - %struct.__sbuf = type { i8*, i32 } - %struct.ggBRDF = type { i32 (...)** } - %"struct.ggBST<ggMaterial>" = type { %"struct.ggBSTNode<ggMaterial>"*, i32 } - %"struct.ggBST<ggRasterSurfaceTexture>" = type { %"struct.ggBSTNode<ggRasterSurfaceTexture>"*, i32 } - %"struct.ggBST<ggSolidTexture>" = type { %"struct.ggBSTNode<ggSolidTexture>"*, i32 } - %"struct.ggBST<ggSpectrum>" = type { %"struct.ggBSTNode<ggSpectrum>"*, i32 } - %"struct.ggBST<mrObjectRecord>" = type { %"struct.ggBSTNode<mrObjectRecord>"*, i32 } - %"struct.ggBSTNode<ggMaterial>" = type { %"struct.ggBSTNode<ggMaterial>"*, %"struct.ggBSTNode<ggMaterial>"*, %struct.ggString, %struct.ggMaterial* } - %"struct.ggBSTNode<ggRasterSurfaceTexture>" = type { %"struct.ggBSTNode<ggRasterSurfaceTexture>"*, %"struct.ggBSTNode<ggRasterSurfaceTexture>"*, %struct.ggString, %struct.ggRasterSurfaceTexture* } - %"struct.ggBSTNode<ggSolidTexture>" = type { %"struct.ggBSTNode<ggSolidTexture>"*, %"struct.ggBSTNode<ggSolidTexture>"*, %struct.ggString, %struct.ggBRDF* } - %"struct.ggBSTNode<ggSpectrum>" = type { %"struct.ggBSTNode<ggSpectrum>"*, %"struct.ggBSTNode<ggSpectrum>"*, %struct.ggString, %struct.ggSpectrum* } - %"struct.ggBSTNode<mrObjectRecord>" = type { %"struct.ggBSTNode<mrObjectRecord>"*, %"struct.ggBSTNode<mrObjectRecord>"*, %struct.ggString, %struct.mrObjectRecord* } - %"struct.ggDictionary<ggMaterial>" = type { %"struct.ggBST<ggMaterial>" } - %"struct.ggDictionary<ggRasterSurfaceTexture>" = type { %"struct.ggBST<ggRasterSurfaceTexture>" } - %"struct.ggDictionary<ggSolidTexture>" = type { %"struct.ggBST<ggSolidTexture>" } - %"struct.ggDictionary<ggSpectrum>" = type { %"struct.ggBST<ggSpectrum>" } - %"struct.ggDictionary<mrObjectRecord>" = type { %"struct.ggBST<mrObjectRecord>" } - %struct.ggHAffineMatrix3 = type { %struct.ggHMatrix3 } - %struct.ggHBoxMatrix3 = type { %struct.ggHAffineMatrix3 } - %struct.ggHMatrix3 = type { [4 x [4 x double]] } - %struct.ggMaterial = type { i32 (...)**, %struct.ggBRDF* } - %struct.ggPoint3 = type { [3 x double] } - %"struct.ggRGBPixel<char>" = type { [3 x i8], i8 } - %"struct.ggRaster<ggRGBPixel<unsigned char> >" = type { i32, i32, %"struct.ggRGBPixel<char>"* } - %struct.ggRasterSurfaceTexture = type { %"struct.ggRaster<ggRGBPixel<unsigned char> >"* } - %struct.ggSolidNoise3 = type { i32, [256 x %struct.ggPoint3], [256 x i32] } - %struct.ggSpectrum = type { [8 x float] } - %struct.ggString = type { %"struct.ggString::StringRep"* } - %"struct.ggString::StringRep" = type { i32, i32, [1 x i8] } - %"struct.ggTrain<mrPixelRenderer*>" = type { %struct.ggBRDF**, i32, i32 } - %struct.mrObjectRecord = type { %struct.ggHBoxMatrix3, %struct.ggHBoxMatrix3, %struct.mrSurfaceList, %struct.ggMaterial*, i32, %struct.ggRasterSurfaceTexture*, %struct.ggBRDF*, i32, i32 } - %struct.mrScene = type { %struct.ggSpectrum, %struct.ggSpectrum, %struct.ggBRDF*, %struct.ggBRDF*, %struct.ggBRDF*, i32, double, %"struct.ggDictionary<mrObjectRecord>", %"struct.ggDictionary<ggRasterSurfaceTexture>", %"struct.ggDictionary<ggSolidTexture>", %"struct.ggDictionary<ggSpectrum>", %"struct.ggDictionary<ggMaterial>" } - %struct.mrSurfaceList = type { %struct.ggBRDF, %"struct.ggTrain<mrPixelRenderer*>" } - %"struct.std::__codecvt_abstract_base<char,char,__mbstate_t>" = type { %"struct.std::locale::facet" } - %"struct.std::basic_ios<char,std::char_traits<char> >" = type { %"struct.std::ios_base", %"struct.std::basic_ostream<char,std::char_traits<char> >"*, i8, i8, %"struct.std::basic_streambuf<char,std::char_traits<char> >"*, %"struct.std::ctype<char>"*, %"struct.std::__codecvt_abstract_base<char,char,__mbstate_t>"*, %"struct.std::__codecvt_abstract_base<char,char,__mbstate_t>"* } - %"struct.std::basic_istream<char,std::char_traits<char> >" = type { i32 (...)**, i32, %"struct.std::basic_ios<char,std::char_traits<char> >" } - %"struct.std::basic_ostream<char,std::char_traits<char> >" = type { i32 (...)**, %"struct.std::basic_ios<char,std::char_traits<char> >" } - %"struct.std::basic_streambuf<char,std::char_traits<char> >" = type { i32 (...)**, i8*, i8*, i8*, i8*, i8*, i8*, %"struct.std::locale" } - %"struct.std::ctype<char>" = type { %"struct.std::locale::facet", i32*, i8, i32*, i32*, i32*, i8, [256 x i8], [256 x i8], i8 } - %"struct.std::ios_base" = type { i32 (...)**, i32, i32, i32, i32, i32, %"struct.std::ios_base::_Callback_list"*, %struct.__sbuf, [8 x %struct.__sbuf], i32, %struct.__sbuf*, %"struct.std::locale" } - %"struct.std::ios_base::_Callback_list" = type { %"struct.std::ios_base::_Callback_list"*, void (i32, %"struct.std::ios_base"*, i32)*, i32, i32 } - %"struct.std::locale" = type { %"struct.std::locale::_Impl"* } - %"struct.std::locale::_Impl" = type { i32, %"struct.std::locale::facet"**, i32, %"struct.std::locale::facet"**, i8** } - %"struct.std::locale::facet" = type { i32 (...)**, i32 } -@.str80 = external constant [7 x i8] ; <[7 x i8]*> [#uses=1] -@.str81 = external constant [11 x i8] ; <[11 x i8]*> [#uses=1] - -define fastcc void @_ZN7mrScene4ReadERSi(%struct.mrScene* %this, %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces) { -entry: - %tmp6.i.i8288 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit unwind label %lpad ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit: ; preds = %entry - %tmp6.i.i8995 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit96 unwind label %lpad3825 ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit96: ; preds = %_ZN8ggStringC1Ei.exit - %tmp6.i.i97103 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit104 unwind label %lpad3829 ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit104: ; preds = %_ZN8ggStringC1Ei.exit96 - %tmp6.i.i105111 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit112 unwind label %lpad3833 ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit112: ; preds = %_ZN8ggStringC1Ei.exit104 - %tmp6.i.i122128 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit129 unwind label %lpad3837 ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit129: ; preds = %_ZN8ggStringC1Ei.exit112 - %tmp6.i.i132138 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit139 unwind label %lpad3841 ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit139: ; preds = %_ZN8ggStringC1Ei.exit129 - %tmp295 = invoke i8* @_Znwm( i32 16 ) - to label %invcont294 unwind label %lpad3845 ; <i8*> [#uses=0] - -invcont294: ; preds = %_ZN8ggStringC1Ei.exit139 - %tmp10.i.i141 = invoke i8* @_Znam( i32 16 ) - to label %_ZN13mrSurfaceListC1Ev.exit unwind label %lpad3849 ; <i8*> [#uses=0] - -_ZN13mrSurfaceListC1Ev.exit: ; preds = %invcont294 - %tmp3.i148 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i.noexc: ; preds = %_ZN13mrSurfaceListC1Ev.exit - %tmp15.i149 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i.noexc unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i.noexc: ; preds = %tmp3.i.noexc - br i1 false, label %bb308, label %bb.i - -bb.i: ; preds = %tmp15.i.noexc - ret void - -bb308: ; preds = %tmp15.i.noexc - br i1 false, label %bb3743.preheader, label %bb315 - -bb3743.preheader: ; preds = %bb308 - %tmp16.i3862 = getelementptr %struct.ggPoint3* null, i32 0, i32 0, i32 0 ; <double*> [#uses=1] - %tmp16.i3859 = getelementptr %struct.ggPoint3* null, i32 0, i32 0, i32 0 ; <double*> [#uses=3] - br label %bb3743 - -bb315: ; preds = %bb308 - ret void - -bb333: ; preds = %invcont3758, %invcont335 - %tmp3.i167180 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i167.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i167.noexc: ; preds = %bb333 - %tmp15.i182 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i.noexc181 unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i.noexc181: ; preds = %tmp3.i167.noexc - br i1 false, label %invcont335, label %bb.i178 - -bb.i178: ; preds = %tmp15.i.noexc181 - ret void - -invcont335: ; preds = %tmp15.i.noexc181 - br i1 false, label %bb3743, label %bb333 - -bb345: ; preds = %invcont3758 - br i1 false, label %bb353, label %bb360 - -bb353: ; preds = %bb345 - %tmp356 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, double* null ) - to label %bb3743 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -bb360: ; preds = %bb345 - br i1 false, label %bb368, label %bb374 - -bb368: ; preds = %bb360 - %tmp373 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, double* null ) - to label %bb3743 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -bb374: ; preds = %bb360 - br i1 false, label %bb396, label %bb421 - -bb396: ; preds = %bb374 - ret void - -bb421: ; preds = %bb374 - br i1 false, label %bb429, label %bb530 - -bb429: ; preds = %bb421 - ret void - -bb530: ; preds = %bb421 - br i1 false, label %bb538, label %bb673 - -bb538: ; preds = %bb530 - ret void - -bb673: ; preds = %bb530 - br i1 false, label %bb681, label %bb778 - -bb681: ; preds = %bb673 - ret void - -bb778: ; preds = %bb673 - br i1 false, label %bb786, label %bb891 - -bb786: ; preds = %bb778 - ret void - -bb891: ; preds = %bb778 - br i1 false, label %bb899, label %bb998 - -bb899: ; preds = %bb891 - ret void - -bb998: ; preds = %bb891 - br i1 false, label %bb1168, label %bb1190 - -bb1168: ; preds = %bb998 - ret void - -bb1190: ; preds = %bb998 - br i1 false, label %bb1198, label %bb1220 - -bb1198: ; preds = %bb1190 - ret void - -bb1220: ; preds = %bb1190 - br i1 false, label %bb1228, label %bb1250 - -bb1228: ; preds = %bb1220 - ret void - -bb1250: ; preds = %bb1220 - br i1 false, label %bb1258, label %bb1303 - -bb1258: ; preds = %bb1250 - ret void - -bb1303: ; preds = %bb1250 - br i1 false, label %bb1311, label %bb1366 - -bb1311: ; preds = %bb1303 - ret void - -bb1366: ; preds = %bb1303 - br i1 false, label %bb1374, label %bb1432 - -bb1374: ; preds = %bb1366 - ret void - -bb1432: ; preds = %bb1366 - br i1 false, label %bb1440, label %bb1495 - -bb1440: ; preds = %bb1432 - ret void - -bb1495: ; preds = %bb1432 - br i1 false, label %bb1503, label %bb1561 - -bb1503: ; preds = %bb1495 - ret void - -bb1561: ; preds = %bb1495 - br i1 false, label %bb1569, label %bb1624 - -bb1569: ; preds = %bb1561 - ret void - -bb1624: ; preds = %bb1561 - br i1 false, label %bb1632, label %bb1654 - -bb1632: ; preds = %bb1624 - store double 0.000000e+00, double* %tmp16.i3859, align 8 - %tmp3.i38383852 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3838.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3838.noexc: ; preds = %bb1632 - %tmp15.i38473853 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i3847.noexc unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i3847.noexc: ; preds = %tmp3.i3838.noexc - br i1 false, label %invcont1634, label %bb.i3850 - -bb.i3850: ; preds = %tmp15.i3847.noexc - ret void - -invcont1634: ; preds = %tmp15.i3847.noexc - %tmp3.i38173831 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3817.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3817.noexc: ; preds = %invcont1634 - %tmp15.i38263832 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i3826.noexc unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i3826.noexc: ; preds = %tmp3.i3817.noexc - br i1 false, label %invcont1636, label %bb.i3829 - -bb.i3829: ; preds = %tmp15.i3826.noexc - ret void - -invcont1636: ; preds = %tmp15.i3826.noexc - %tmp8.i38083811 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, double* %tmp16.i3862 ) - to label %tmp8.i3808.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -tmp8.i3808.noexc: ; preds = %invcont1636 - %tmp9.i38093812 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp8.i38083811, double* null ) - to label %tmp9.i3809.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -tmp9.i3809.noexc: ; preds = %tmp8.i3808.noexc - %tmp10.i38103813 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp9.i38093812, double* null ) - to label %invcont1638 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -invcont1638: ; preds = %tmp9.i3809.noexc - %tmp8.i37983801 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, double* %tmp16.i3859 ) - to label %tmp8.i3798.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -tmp8.i3798.noexc: ; preds = %invcont1638 - %tmp9.i37993802 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp8.i37983801, double* null ) - to label %tmp9.i3799.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -tmp9.i3799.noexc: ; preds = %tmp8.i3798.noexc - %tmp10.i38003803 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp9.i37993802, double* null ) - to label %invcont1640 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -invcont1640: ; preds = %tmp9.i3799.noexc - %tmp3.i3778 = load double* %tmp16.i3859, align 8 ; <double> [#uses=1] - %tmp1643 = invoke i8* @_Znwm( i32 76 ) - to label %invcont1642 unwind label %lpad3845 ; <i8*> [#uses=0] - -invcont1642: ; preds = %invcont1640 - %tmp18.i3770 = fsub double %tmp3.i3778, 0.000000e+00 ; <double> [#uses=0] - invoke fastcc void @_ZN7mrScene9AddObjectEP9mrSurfaceRK8ggStringS4_i( %struct.mrScene* %this, %struct.ggBRDF* null, %struct.ggString* null, %struct.ggString* null, i32 0 ) - to label %bb3743 unwind label %lpad3845 - -bb1654: ; preds = %bb1624 - br i1 false, label %bb1662, label %bb1693 - -bb1662: ; preds = %bb1654 - %tmp3.i37143728 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3714.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3714.noexc: ; preds = %bb1662 - %tmp15.i37233729 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i3723.noexc unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i3723.noexc: ; preds = %tmp3.i3714.noexc - ret void - -bb1693: ; preds = %bb1654 - br i1 false, label %bb1701, label %bb1745 - -bb1701: ; preds = %bb1693 - %tmp3.i36493663 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3649.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3649.noexc: ; preds = %bb1701 - ret void - -bb1745: ; preds = %bb1693 - br i1 false, label %bb1753, label %bb1797 - -bb1753: ; preds = %bb1745 - ret void - -bb1797: ; preds = %bb1745 - br i1 false, label %bb1805, label %bb1847 - -bb1805: ; preds = %bb1797 - ret void - -bb1847: ; preds = %bb1797 - br i1 false, label %bb1855, label %bb1897 - -bb1855: ; preds = %bb1847 - %tmp3.i34633477 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3463.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3463.noexc: ; preds = %bb1855 - %tmp15.i34723478 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i3472.noexc unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i3472.noexc: ; preds = %tmp3.i3463.noexc - br i1 false, label %invcont1857, label %bb.i3475 - -bb.i3475: ; preds = %tmp15.i3472.noexc - invoke fastcc void @_ZN8ggStringaSEPKc( %struct.ggString* null, i8* null ) - to label %invcont1857 unwind label %lpad3845 - -invcont1857: ; preds = %bb.i3475, %tmp15.i3472.noexc - %tmp1860 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, double* null ) - to label %invcont1859 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -invcont1859: ; preds = %invcont1857 - %tmp1862 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp1860, double* null ) - to label %invcont1861 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -invcont1861: ; preds = %invcont1859 - %tmp1864 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp1862, double* null ) - to label %invcont1863 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -invcont1863: ; preds = %invcont1861 - %tmp1866 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp1864, double* null ) - to label %invcont1865 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -invcont1865: ; preds = %invcont1863 - %tmp1868 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp1866, double* null ) - to label %invcont1867 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -invcont1867: ; preds = %invcont1865 - %tmp1881 = invoke i8 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) zeroext - to label %invcont1880 unwind label %lpad3845 ; <i8> [#uses=0] - -invcont1880: ; preds = %invcont1867 - %tmp1883 = invoke i8* @_Znwm( i32 24 ) - to label %invcont1882 unwind label %lpad3845 ; <i8*> [#uses=0] - -invcont1882: ; preds = %invcont1880 - invoke fastcc void @_ZN7mrScene9AddObjectEP9mrSurfaceRK8ggStringS4_i( %struct.mrScene* %this, %struct.ggBRDF* null, %struct.ggString* null, %struct.ggString* null, i32 0 ) - to label %bb3743 unwind label %lpad3845 - -bb1897: ; preds = %bb1847 - br i1 false, label %bb1905, label %bb1947 - -bb1905: ; preds = %bb1897 - ret void - -bb1947: ; preds = %bb1897 - br i1 false, label %bb1955, label %bb2000 - -bb1955: ; preds = %bb1947 - ret void - -bb2000: ; preds = %bb1947 - br i1 false, label %bb2008, label %bb2053 - -bb2008: ; preds = %bb2000 - ret void - -bb2053: ; preds = %bb2000 - br i1 false, label %bb2061, label %bb2106 - -bb2061: ; preds = %bb2053 - %tmp3.i32433257 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3243.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3243.noexc: ; preds = %bb2061 - %tmp15.i32523258 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %bb.i3255 unwind label %lpad3845 ; <i8*> [#uses=0] - -bb.i3255: ; preds = %tmp3.i3243.noexc - invoke fastcc void @_ZN8ggStringaSEPKc( %struct.ggString* null, i8* null ) - to label %invcont2063 unwind label %lpad3845 - -invcont2063: ; preds = %bb.i3255 - ret void - -bb2106: ; preds = %bb2053 - %tmp7.i3214 = call i32 @strcmp( i8* %tmp5.i161, i8* getelementptr ([7 x i8]* @.str80, i32 0, i32 0) ) nounwind readonly ; <i32> [#uses=0] - br i1 false, label %bb2114, label %bb2136 - -bb2114: ; preds = %bb2106 - %tmp3.i31923206 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3192.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3192.noexc: ; preds = %bb2114 - %tmp15.i32013207 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i3201.noexc unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i3201.noexc: ; preds = %tmp3.i3192.noexc - br i1 false, label %invcont2116, label %bb.i3204 - -bb.i3204: ; preds = %tmp15.i3201.noexc - ret void - -invcont2116: ; preds = %tmp15.i3201.noexc - %tmp3.i31713185 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3171.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3171.noexc: ; preds = %invcont2116 - %tmp15.i31803186 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i3180.noexc unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i3180.noexc: ; preds = %tmp3.i3171.noexc - br i1 false, label %invcont2118, label %bb.i3183 - -bb.i3183: ; preds = %tmp15.i3180.noexc - ret void - -invcont2118: ; preds = %tmp15.i3180.noexc - %tmp8.i31623165 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, double* null ) - to label %tmp8.i3162.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -tmp8.i3162.noexc: ; preds = %invcont2118 - %tmp9.i31633166 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp8.i31623165, double* null ) - to label %tmp9.i3163.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -tmp9.i3163.noexc: ; preds = %tmp8.i3162.noexc - %tmp10.i31643167 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp9.i31633166, double* null ) - to label %invcont2120 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -invcont2120: ; preds = %tmp9.i3163.noexc - %tmp2123 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, double* null ) - to label %invcont2122 unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -invcont2122: ; preds = %invcont2120 - %tmp2125 = invoke i8* @_Znwm( i32 36 ) - to label %invcont2124 unwind label %lpad3845 ; <i8*> [#uses=0] - -invcont2124: ; preds = %invcont2122 - invoke fastcc void @_ZN7mrScene9AddObjectEP9mrSurfaceRK8ggStringS4_i( %struct.mrScene* %this, %struct.ggBRDF* null, %struct.ggString* null, %struct.ggString* null, i32 0 ) - to label %bb3743 unwind label %lpad3845 - -bb2136: ; preds = %bb2106 - %tmp7.i3128 = call i32 @strcmp( i8* %tmp5.i161, i8* getelementptr ([11 x i8]* @.str81, i32 0, i32 0) ) nounwind readonly ; <i32> [#uses=0] - br i1 false, label %bb2144, label %bb3336 - -bb2144: ; preds = %bb2136 - %tmp6.i.i31173123 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit3124 unwind label %lpad3845 ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit3124: ; preds = %bb2144 - %tmp3.i30983112 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i3098.noexc unwind label %lpad3921 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i3098.noexc: ; preds = %_ZN8ggStringC1Ei.exit3124 - %tmp15.i31073113 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i3107.noexc unwind label %lpad3921 ; <i8*> [#uses=0] - -tmp15.i3107.noexc: ; preds = %tmp3.i3098.noexc - br i1 false, label %invcont2147, label %bb.i3110 - -bb.i3110: ; preds = %tmp15.i3107.noexc - ret void - -invcont2147: ; preds = %tmp15.i3107.noexc - %tmp2161 = invoke i8 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) zeroext - to label %invcont2160 unwind label %lpad3921 ; <i8> [#uses=0] - -invcont2160: ; preds = %invcont2147 - %tmp4.i30933094 = invoke fastcc %struct.ggSpectrum* @_ZN5ggBSTI10ggSpectrumE4findERK8ggString3( %"struct.ggBSTNode<ggSpectrum>"* null, %struct.ggString* null ) - to label %invcont2164 unwind label %lpad3921 ; <%struct.ggSpectrum*> [#uses=0] - -invcont2164: ; preds = %invcont2160 - br i1 false, label %bb2170, label %bb2181 - -bb2170: ; preds = %invcont2164 - ret void - -bb2181: ; preds = %invcont2164 - invoke fastcc void @_ZN8ggStringD1Ev( %struct.ggString* null ) - to label %bb3743 unwind label %lpad3845 - -bb3336: ; preds = %bb2136 - br i1 false, label %bb3344, label %bb3734 - -bb3344: ; preds = %bb3336 - %tmp6.i.i773779 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit780 unwind label %lpad3845 ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit780: ; preds = %bb3344 - %tmp6.i.i765771 = invoke i8* @_Znam( i32 12 ) - to label %_ZN8ggStringC1Ei.exit772 unwind label %lpad4025 ; <i8*> [#uses=0] - -_ZN8ggStringC1Ei.exit772: ; preds = %_ZN8ggStringC1Ei.exit780 - %tmp3.i746760 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i746.noexc unwind label %lpad4029 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i746.noexc: ; preds = %_ZN8ggStringC1Ei.exit772 - %tmp15.i755761 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i755.noexc unwind label %lpad4029 ; <i8*> [#uses=0] - -tmp15.i755.noexc: ; preds = %tmp3.i746.noexc - br i1 false, label %invcont3348, label %bb.i758 - -bb.i758: ; preds = %tmp15.i755.noexc - ret void - -invcont3348: ; preds = %tmp15.i755.noexc - %tmp3.i726740 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i726.noexc unwind label %lpad4029 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i726.noexc: ; preds = %invcont3348 - %tmp15.i735741 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i735.noexc unwind label %lpad4029 ; <i8*> [#uses=0] - -tmp15.i735.noexc: ; preds = %tmp3.i726.noexc - br i1 false, label %bb3458, label %bb.i738 - -bb.i738: ; preds = %tmp15.i735.noexc - ret void - -bb3458: ; preds = %tmp15.i735.noexc - br i1 false, label %bb3466, label %bb3491 - -bb3466: ; preds = %bb3458 - %tmp3469 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, double* null ) - to label %invcont3468 unwind label %lpad4029 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -invcont3468: ; preds = %bb3466 - %tmp3471 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp3469, double* null ) - to label %invcont3470 unwind label %lpad4029 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=1] - -invcont3470: ; preds = %invcont3468 - %tmp3473 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERi( %"struct.std::basic_istream<char,std::char_traits<char> >"* %tmp3471, i32* null ) - to label %invcont3472 unwind label %lpad4029 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -invcont3472: ; preds = %invcont3470 - %tmp3475 = invoke i8* @_Znwm( i32 7196 ) - to label %invcont3474 unwind label %lpad4029 ; <i8*> [#uses=1] - -invcont3474: ; preds = %invcont3472 - invoke fastcc void @_ZN13ggSolidNoise3C1Ev( %struct.ggSolidNoise3* null ) - to label %_ZN22ggCoverageSolidTextureC1Eddi.exit unwind label %lpad4045 - -_ZN22ggCoverageSolidTextureC1Eddi.exit: ; preds = %invcont3474 - %tmp34823483 = bitcast i8* %tmp3475 to %struct.ggBRDF* ; <%struct.ggBRDF*> [#uses=2] - invoke fastcc void @_ZN5ggBSTI14ggSolidTextureE17InsertIntoSubtreeERK8ggStringPS0_RP9ggBSTNodeIS0_E( %"struct.ggBST<ggSolidTexture>"* null, %struct.ggString* null, %struct.ggBRDF* %tmp34823483, %"struct.ggBSTNode<ggSolidTexture>"** null ) - to label %bb3662 unwind label %lpad4029 - -bb3491: ; preds = %bb3458 - ret void - -bb3662: ; preds = %_ZN22ggCoverageSolidTextureC1Eddi.exit - invoke fastcc void @_ZN8ggStringD1Ev( %struct.ggString* null ) - to label %invcont3663 unwind label %lpad4025 - -invcont3663: ; preds = %bb3662 - invoke fastcc void @_ZN8ggStringD1Ev( %struct.ggString* null ) - to label %bb3743 unwind label %lpad3845 - -bb3734: ; preds = %bb3336 - ret void - -bb3743: ; preds = %invcont3663, %bb2181, %invcont2124, %invcont1882, %invcont1642, %bb368, %bb353, %invcont335, %bb3743.preheader - %tex1.3 = phi %struct.ggBRDF* [ undef, %bb3743.preheader ], [ %tex1.3, %bb368 ], [ %tex1.3, %invcont1642 ], [ %tex1.3, %invcont1882 ], [ %tex1.3, %invcont2124 ], [ %tex1.3, %bb2181 ], [ %tex1.3, %invcont335 ], [ %tmp34823483, %invcont3663 ], [ %tex1.3, %bb353 ] ; <%struct.ggBRDF*> [#uses=7] - %tmp3.i312325 = invoke %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_( %"struct.std::basic_istream<char,std::char_traits<char> >"* %surfaces, i8* null ) - to label %tmp3.i312.noexc unwind label %lpad3845 ; <%"struct.std::basic_istream<char,std::char_traits<char> >"*> [#uses=0] - -tmp3.i312.noexc: ; preds = %bb3743 - %tmp15.i327 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %tmp15.i.noexc326 unwind label %lpad3845 ; <i8*> [#uses=0] - -tmp15.i.noexc326: ; preds = %tmp3.i312.noexc - br i1 false, label %invcont3745, label %bb.i323 - -bb.i323: ; preds = %tmp15.i.noexc326 - ret void - -invcont3745: ; preds = %tmp15.i.noexc326 - %tmp3759 = invoke i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv( %"struct.std::basic_ios<char,std::char_traits<char> >"* null ) - to label %invcont3758 unwind label %lpad3845 ; <i8*> [#uses=0] - -invcont3758: ; preds = %invcont3745 - %tmp5.i161 = getelementptr %"struct.ggString::StringRep"* null, i32 0, i32 2, i32 0 ; <i8*> [#uses=2] - br i1 false, label %bb333, label %bb345 - -lpad: ; preds = %entry - ret void - -lpad3825: ; preds = %_ZN8ggStringC1Ei.exit - ret void - -lpad3829: ; preds = %_ZN8ggStringC1Ei.exit96 - ret void - -lpad3833: ; preds = %_ZN8ggStringC1Ei.exit104 - ret void - -lpad3837: ; preds = %_ZN8ggStringC1Ei.exit112 - ret void - -lpad3841: ; preds = %_ZN8ggStringC1Ei.exit129 - ret void - -lpad3845: ; preds = %invcont3745, %tmp3.i312.noexc, %bb3743, %invcont3663, %bb3344, %bb2181, %bb2144, %invcont2124, %invcont2122, %invcont2120, %tmp9.i3163.noexc, %tmp8.i3162.noexc, %invcont2118, %tmp3.i3171.noexc, %invcont2116, %tmp3.i3192.noexc, %bb2114, %bb.i3255, %tmp3.i3243.noexc, %bb2061, %invcont1882, %invcont1880, %invcont1867, %invcont1865, %invcont1863, %invcont1861, %invcont1859, %invcont1857, %bb.i3475, %tmp3.i3463.noexc, %bb1855, %bb1701, %tmp3.i3714.noexc, %bb1662, %invcont1642, %invcont1640, %tmp9.i3799.noexc, %tmp8.i3798.noexc, %invcont1638, %tmp9.i3809.noexc, %tmp8.i3808.noexc, %invcont1636, %tmp3.i3817.noexc, %invcont1634, %tmp3.i3838.noexc, %bb1632, %bb368, %bb353, %tmp3.i167.noexc, %bb333, %tmp3.i.noexc, %_ZN13mrSurfaceListC1Ev.exit, %_ZN8ggStringC1Ei.exit139 - ret void - -lpad3849: ; preds = %invcont294 - ret void - -lpad3921: ; preds = %invcont2160, %invcont2147, %tmp3.i3098.noexc, %_ZN8ggStringC1Ei.exit3124 - ret void - -lpad4025: ; preds = %bb3662, %_ZN8ggStringC1Ei.exit780 - ret void - -lpad4029: ; preds = %_ZN22ggCoverageSolidTextureC1Eddi.exit, %invcont3472, %invcont3470, %invcont3468, %bb3466, %tmp3.i726.noexc, %invcont3348, %tmp3.i746.noexc, %_ZN8ggStringC1Ei.exit772 - ret void - -lpad4045: ; preds = %invcont3474 - ret void -} - -declare fastcc void @_ZN8ggStringD1Ev(%struct.ggString*) - -declare i8* @_Znam(i32) - -declare fastcc void @_ZN8ggStringaSEPKc(%struct.ggString*, i8*) - -declare i32 @strcmp(i8*, i8*) nounwind readonly - -declare %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERi(%"struct.std::basic_istream<char,std::char_traits<char> >"*, i32*) - -declare i8* @_Znwm(i32) - -declare i8* @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvPvEv(%"struct.std::basic_ios<char,std::char_traits<char> >"*) - -declare %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZNSirsERd(%"struct.std::basic_istream<char,std::char_traits<char> >"*, double*) - -declare %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(%"struct.std::basic_istream<char,std::char_traits<char> >"*, i8*) - -declare fastcc void @_ZN13ggSolidNoise3C1Ev(%struct.ggSolidNoise3*) - -declare i8 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(%"struct.std::basic_ios<char,std::char_traits<char> >"*) zeroext - -declare fastcc %struct.ggSpectrum* @_ZN5ggBSTI10ggSpectrumE4findERK8ggString3(%"struct.ggBSTNode<ggSpectrum>"*, %struct.ggString*) - -declare fastcc void @_ZN5ggBSTI14ggSolidTextureE17InsertIntoSubtreeERK8ggStringPS0_RP9ggBSTNodeIS0_E(%"struct.ggBST<ggSolidTexture>"*, %struct.ggString*, %struct.ggBRDF*, %"struct.ggBSTNode<ggSolidTexture>"**) - -declare fastcc void @_ZN7mrScene9AddObjectEP9mrSurfaceRK8ggStringS4_i(%struct.mrScene*, %struct.ggBRDF*, %struct.ggString*, %struct.ggString*, i32) diff --git a/test/CodeGen/X86/2008-02-25-X86-64-CoalescerBug.ll b/test/CodeGen/X86/2008-02-25-X86-64-CoalescerBug.ll index 6615b8c620..fd9c35e58b 100644 --- a/test/CodeGen/X86/2008-02-25-X86-64-CoalescerBug.ll +++ b/test/CodeGen/X86/2008-02-25-X86-64-CoalescerBug.ll @@ -4,7 +4,7 @@ %struct.YY = type { i64 } %struct.ZZ = type opaque -define i8 @f(%struct.XX*** %fontMap, %struct.XX* %uen) signext { +define signext i8 @f(%struct.XX*** %fontMap, %struct.XX* %uen) { entry: %tmp45 = add i16 0, 1 ; <i16> [#uses=2] br i1 false, label %bb124, label %bb53 diff --git a/test/CodeGen/X86/2008-03-13-TwoAddrPassCrash.ll b/test/CodeGen/X86/2008-03-13-TwoAddrPassCrash.ll index c6ba22ea3d..19d49b21f5 100644 --- a/test/CodeGen/X86/2008-03-13-TwoAddrPassCrash.ll +++ b/test/CodeGen/X86/2008-03-13-TwoAddrPassCrash.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 -define i16 @t(i32 %depth) signext nounwind { +define signext i16 @t(i32 %depth) nounwind { entry: br i1 false, label %bb74, label %bb bb: ; preds = %entry diff --git a/test/CodeGen/X86/2008-04-16-ReMatBug.ll b/test/CodeGen/X86/2008-04-16-ReMatBug.ll index bfe8ef53f5..109069e353 100644 --- a/test/CodeGen/X86/2008-04-16-ReMatBug.ll +++ b/test/CodeGen/X86/2008-04-16-ReMatBug.ll @@ -6,7 +6,7 @@ %struct.pthread_mutex_t = type { i32, [40 x i8] } @iodbcdm_global_lock = external global %struct.pthread_mutex_t ; <%struct.pthread_mutex_t*> [#uses=1] -define i16 @SQLDriversW(i8* %henv, i16 zeroext %fDir, i32* %szDrvDesc, i16 signext %cbDrvDescMax, i16* %pcbDrvDesc, i32* %szDrvAttr, i16 signext %cbDrvAttrMax, i16* %pcbDrvAttr) signext nounwind { +define i16 @SQLDriversW(i8* %henv, i16 zeroext %fDir, i32* %szDrvDesc, i16 signext %cbDrvDescMax, i16* %pcbDrvDesc, i32* %szDrvAttr, i16 signext %cbDrvAttrMax, i16* %pcbDrvAttr) nounwind { entry: %tmp12 = bitcast i8* %henv to %struct.GENV_t* ; <%struct.GENV_t*> [#uses=1] br i1 true, label %bb28, label %bb @@ -23,7 +23,7 @@ bb74: ; preds = %bb37 bb92: ; preds = %bb74, %bb37 %tmp95180 = shl i16 %cbDrvAttrMax, 2 ; <i16> [#uses=1] %tmp100178 = shl i16 %cbDrvDescMax, 2 ; <i16> [#uses=1] - %tmp113 = tail call i16 @SQLDrivers_Internal( i8* %henv, i16 zeroext %fDir, i8* null, i16 signext %tmp100178, i16* %pcbDrvDesc, i8* null, i16 signext %tmp95180, i16* %pcbDrvAttr, i8 zeroext 87 ) signext nounwind ; <i16> [#uses=1] + %tmp113 = tail call i16 @SQLDrivers_Internal( i8* %henv, i16 zeroext %fDir, i8* null, i16 signext %tmp100178, i16* %pcbDrvDesc, i8* null, i16 signext %tmp95180, i16* %pcbDrvAttr, i8 zeroext 87 ) nounwind ; <i16> [#uses=1] br i1 false, label %done, label %bb137 bb137: ; preds = %bb92 ret i16 0 @@ -41,6 +41,6 @@ bb167: ; preds = %done declare i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) -declare i16 @SQLDrivers_Internal(i8*, i16 zeroext , i8*, i16 signext , i16*, i8*, i16 signext , i16*, i8 zeroext ) signext nounwind +declare i16 @SQLDrivers_Internal(i8*, i16 zeroext , i8*, i16 signext , i16*, i8*, i16 signext , i16*, i8 zeroext ) nounwind declare void @trace_SQLDriversW(i32, i32, i8*, i16 zeroext , i32*, i16 signext , i16*, i32*, i16 signext , i16*) diff --git a/test/CodeGen/X86/2008-04-17-CoalescerBug.ll b/test/CodeGen/X86/2008-04-17-CoalescerBug.ll index ac482850b8..77720aa67d 100644 --- a/test/CodeGen/X86/2008-04-17-CoalescerBug.ll +++ b/test/CodeGen/X86/2008-04-17-CoalescerBug.ll @@ -75,7 +75,7 @@ bb5334: ; preds = %bb3314 bb5484: ; preds = %bb3314 ret void bb5657: ; preds = %bb3314 - %tmp5661 = invoke i16 @_ZNK10wxDateTime12GetDayOfYearERKNS_8TimeZoneE( %struct.wxDateTime* %this, %"struct.wxDateTime::TimeZone"* %tz ) zeroext + %tmp5661 = invoke zeroext i16 @_ZNK10wxDateTime12GetDayOfYearERKNS_8TimeZoneE( %struct.wxDateTime* %this, %"struct.wxDateTime::TimeZone"* %tz ) to label %invcont5660 unwind label %lpad ; <i16> [#uses=0] invcont5660: ; preds = %bb5657 ret void @@ -120,7 +120,7 @@ invcont5814: ; preds = %bb448.i8694, %bb265.i8606 invoke void (%struct.wxString*, i32*, ...)* @_ZN8wxString6FormatEPKwz( %struct.wxString* noalias sret null, i32* null, i32 %tmp58165817 ) to label %invcont5831 unwind label %lpad invcont5831: ; preds = %invcont5814 - %tmp5862 = invoke i8 @_ZN12wxStringBase10ConcatSelfEmPKwm( %struct.wxStringBase* null, i32 0, i32* null, i32 0 ) zeroext + %tmp5862 = invoke zeroext i8 @_ZN12wxStringBase10ConcatSelfEmPKwm( %struct.wxStringBase* null, i32 0, i32* null, i32 0 ) to label %bb7834 unwind label %lpad8185 ; <i8> [#uses=0] bb5968: ; preds = %bb3314 invoke void (%struct.wxString*, i32*, ...)* @_ZN8wxString6FormatEPKwz( %struct.wxString* noalias sret null, i32* null, i32 0 ) @@ -158,11 +158,11 @@ lpad8185: ; preds = %invcont5831 declare void @_Z10wxOnAssertPKwiPKcS0_S0_(i32*, i32, i8*, i32*, i32*) -declare i8 @_ZN12wxStringBase10ConcatSelfEmPKwm(%struct.wxStringBase*, i32, i32*, i32) zeroext +declare zeroext i8 @_ZN12wxStringBase10ConcatSelfEmPKwm(%struct.wxStringBase*, i32, i32*, i32) declare %struct.tm* @gmtime_r(i32*, %struct.tm*) -declare i16 @_ZNK10wxDateTime12GetDayOfYearERKNS_8TimeZoneE(%struct.wxDateTime*, %"struct.wxDateTime::TimeZone"*) zeroext +declare zeroext i16 @_ZNK10wxDateTime12GetDayOfYearERKNS_8TimeZoneE(%struct.wxDateTime*, %"struct.wxDateTime::TimeZone"*) declare %struct.wxStringBase* @_ZN12wxStringBase6appendEmw(%struct.wxStringBase*, i32, i32) diff --git a/test/CodeGen/X86/2008-08-23-X86-64AsmBug.ll b/test/CodeGen/X86/2008-08-23-X86-64AsmBug.ll deleted file mode 100644 index ce9e389fb3..0000000000 --- a/test/CodeGen/X86/2008-08-23-X86-64AsmBug.ll +++ /dev/null @@ -1,59 +0,0 @@ -; RUN: llc < %s -mtriple=x86_64-apple-darwin | grep movd | count 1 -; RUN: llc < %s -mtriple=x86_64-apple-darwin | grep movq -; PR2677 - - - %struct.Bigint = type { %struct.Bigint*, i32, i32, i32, i32, [1 x i32] } - -define double @_Z7qstrtodPKcPS0_Pb(i8* %s00, i8** %se, i8* %ok) nounwind { -entry: - br label %bb163 - -bb151: ; preds = %entry - br label %bb163 - -bb163: ; preds = %bb151, %entry - %tmp366 = load double* null, align 8 ; <double> [#uses=1] - %tmp368 = fmul double %tmp366, 0.000000e+00 ; <double> [#uses=1] - %tmp368226 = bitcast double %tmp368 to i64 ; <i64> [#uses=1] - br label %bb5.i - -bb5.i: ; preds = %bb5.i57.i, %bb163 - %b.0.i = phi %struct.Bigint* [ null, %bb163 ] ; <%struct.Bigint*> [#uses=1] - %tmp3.i7.i728 = load i32* null, align 4 ; <i32> [#uses=1] - br label %bb.i27.i - -bb.i27.i: ; preds = %bb.i27.i, %bb5.i - %tmp23.i20.i = lshr i32 0, 16 ; <i32> [#uses=1] - br label %bb5.i57.i - -bb5.i57.i: ; preds = %bb.i27.i - %tmp50.i35.i = load i32* null, align 4 ; <i32> [#uses=1] - %tmp51.i36.i = add i32 %tmp50.i35.i, 1 ; <i32> [#uses=2] - %tmp2.i.i37.i = shl i32 1, %tmp51.i36.i ; <i32> [#uses=2] - %tmp4.i.i38.i = shl i32 %tmp2.i.i37.i, 2 ; <i32> [#uses=1] - %tmp7.i.i39.i = add i32 %tmp4.i.i38.i, 28 ; <i32> [#uses=1] - %tmp8.i.i40.i = malloc i8, i32 %tmp7.i.i39.i ; <i8*> [#uses=1] - %tmp9.i.i41.i = bitcast i8* %tmp8.i.i40.i to %struct.Bigint* ; <%struct.Bigint*> [#uses=2] - store i32 %tmp51.i36.i, i32* null, align 8 - store i32 %tmp2.i.i37.i, i32* null, align 4 - free %struct.Bigint* %b.0.i - store i32 %tmp23.i20.i, i32* null, align 4 - %tmp74.i61.i = add i32 %tmp3.i7.i728, 1 ; <i32> [#uses=1] - store i32 %tmp74.i61.i, i32* null, align 4 - br label %bb7.i - -bb7.i: ; preds = %bb5.i57.i - %tmp514 = load i32* null, align 4 ; <i32> [#uses=1] - %tmp515 = sext i32 %tmp514 to i64 ; <i64> [#uses=1] - %tmp516 = shl i64 %tmp515, 2 ; <i64> [#uses=1] - %tmp517 = add i64 %tmp516, 8 ; <i64> [#uses=1] - %tmp519 = getelementptr %struct.Bigint* %tmp9.i.i41.i, i32 0, i32 3 ; <i32*> [#uses=1] - %tmp523 = bitcast i32* %tmp519 to i8* ; <i8*> [#uses=1] - call void @llvm.memcpy.i64( i8* null, i8* %tmp523, i64 %tmp517, i32 1 ) - %tmp524136 = bitcast i64 %tmp368226 to double ; <double> [#uses=1] - store double %tmp524136, double* null - unreachable -} - -declare void @llvm.memcpy.i64(i8*, i8*, i64, i32) nounwind diff --git a/test/CodeGen/X86/2008-09-25-sseregparm-1.ll b/test/CodeGen/X86/2008-09-25-sseregparm-1.ll index c92a8f4635..fc3e35ed1f 100644 --- a/test/CodeGen/X86/2008-09-25-sseregparm-1.ll +++ b/test/CodeGen/X86/2008-09-25-sseregparm-1.ll @@ -2,11 +2,11 @@ ; RUN: llc < %s -march=x86 -mattr=+sse2 | grep fld | count 2 ; check 'inreg' attribute for sse_regparm -define double @foo1() inreg nounwind { +define inreg double @foo1() nounwind { ret double 1.0 } -define float @foo2() inreg nounwind { +define inreg float @foo2() nounwind { ret float 1.0 } diff --git a/test/CodeGen/X86/2009-01-29-LocalRegAllocBug.ll b/test/CodeGen/X86/2009-01-29-LocalRegAllocBug.ll deleted file mode 100644 index 35fac0c02a..0000000000 --- a/test/CodeGen/X86/2009-01-29-LocalRegAllocBug.ll +++ /dev/null @@ -1,38 +0,0 @@ -; RUN: llc < %s -mtriple=i386-apple-darwin9.6 -regalloc=fast -disable-fp-elim -; rdar://6538384 - - %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 } - %struct.Lit = type { i32 } - %struct.StreamBuffer = type { %struct.FILE*, [1048576 x i8], i32, i32 } - %struct.__sFILEX = type opaque - %struct.__sbuf = type { i8*, i32 } - -declare fastcc i32 @_Z8parseIntI12StreamBufferEiRT_(%struct.StreamBuffer*) - -declare i8* @llvm.eh.exception() nounwind - -define i32 @main(i32 %argc, i8** nocapture %argv) noreturn { -entry: - %0 = invoke fastcc i32 @_Z8parseIntI12StreamBufferEiRT_(%struct.StreamBuffer* null) - to label %bb1.i16.i.i unwind label %lpad.i.i ; <i32> [#uses=0] - -bb1.i16.i.i: ; preds = %entry - br i1 false, label %bb.i.i.i.i, label %_ZN3vecI3LitE4pushERKS0_.exit.i.i.i - -bb.i.i.i.i: ; preds = %bb1.i16.i.i - br label %_ZN3vecI3LitE4pushERKS0_.exit.i.i.i - -_ZN3vecI3LitE4pushERKS0_.exit.i.i.i: ; preds = %bb.i.i.i.i, %bb1.i16.i.i - %lits.i.i.0.0 = phi %struct.Lit* [ null, %bb1.i16.i.i ], [ null, %bb.i.i.i.i ] ; <%struct.Lit*> [#uses=1] - %1 = invoke fastcc i32 @_Z8parseIntI12StreamBufferEiRT_(%struct.StreamBuffer* null) - to label %.noexc21.i.i unwind label %lpad.i.i ; <i32> [#uses=0] - -.noexc21.i.i: ; preds = %_ZN3vecI3LitE4pushERKS0_.exit.i.i.i - unreachable - -lpad.i.i: ; preds = %_ZN3vecI3LitE4pushERKS0_.exit.i.i.i, %entry - %lits.i.i.0.3 = phi %struct.Lit* [ %lits.i.i.0.0, %_ZN3vecI3LitE4pushERKS0_.exit.i.i.i ], [ null, %entry ] ; <%struct.Lit*> [#uses=1] - %eh_ptr.i.i = call i8* @llvm.eh.exception() ; <i8*> [#uses=0] - free %struct.Lit* %lits.i.i.0.3 - unreachable -} diff --git a/test/CodeGen/X86/2009-02-20-PreAllocSplit-Crash.ll b/test/CodeGen/X86/2009-02-20-PreAllocSplit-Crash.ll deleted file mode 100644 index aba4bfcbf5..0000000000 --- a/test/CodeGen/X86/2009-02-20-PreAllocSplit-Crash.ll +++ /dev/null @@ -1,71 +0,0 @@ -; RUN: llc < %s -march=x86 -mtriple=i386-apple-darwin8 -pre-alloc-split -regalloc=linearscan - -define i32 @main() nounwind { -bb4.i.thread: - br label %bb5.i4 - -bb16: ; preds = %bb111.i - %phitmp = add i32 %indvar.reg2mem.4, 1 ; <i32> [#uses=2] - switch i32 %indvar.reg2mem.4, label %bb100.i [ - i32 0, label %bb5.i4 - i32 1, label %bb5.i4 - i32 2, label %bb5.i4 - i32 5, label %bb.i14.i - i32 6, label %bb.i14.i - i32 7, label %bb.i14.i - ] - -bb5.i4: ; preds = %bb16, %bb16, %bb16, %bb4.i.thread - br i1 false, label %bb102.i, label %bb103.i - -bb.i14.i: ; preds = %bb16, %bb16, %bb16 - %0 = malloc [600 x i32] ; <[600 x i32]*> [#uses=0] - %1 = icmp eq i32 %phitmp, 7 ; <i1> [#uses=1] - %tl.0.i = select i1 %1, float 1.000000e+02, float 1.000000e+00 ; <float> [#uses=1] - %2 = icmp eq i32 %phitmp, 8 ; <i1> [#uses=1] - %tu.0.i = select i1 %2, float 1.000000e+02, float 1.000000e+00 ; <float> [#uses=1] - br label %bb30.i - -bb30.i: ; preds = %bb36.i, %bb.i14.i - %i.1173.i = phi i32 [ 0, %bb.i14.i ], [ %indvar.next240.i, %bb36.i ] ; <i32> [#uses=3] - %3 = icmp eq i32 0, %i.1173.i ; <i1> [#uses=1] - br i1 %3, label %bb33.i, label %bb34.i - -bb33.i: ; preds = %bb30.i - store float %tl.0.i, float* null, align 4 - br label %bb36.i - -bb34.i: ; preds = %bb30.i - %4 = icmp eq i32 0, %i.1173.i ; <i1> [#uses=1] - br i1 %4, label %bb35.i, label %bb36.i - -bb35.i: ; preds = %bb34.i - store float %tu.0.i, float* null, align 4 - br label %bb36.i - -bb36.i: ; preds = %bb35.i, %bb34.i, %bb33.i - %indvar.next240.i = add i32 %i.1173.i, 1 ; <i32> [#uses=1] - br label %bb30.i - -bb100.i: ; preds = %bb16 - ret i32 0 - -bb102.i: ; preds = %bb5.i4 - br label %bb103.i - -bb103.i: ; preds = %bb102.i, %bb5.i4 - %indvar.reg2mem.4 = phi i32 [ 0, %bb5.i4 ], [ 0, %bb102.i ] ; <i32> [#uses=2] - %n.0.reg2mem.1.i = phi i32 [ 0, %bb102.i ], [ 0, %bb5.i4 ] ; <i32> [#uses=1] - %5 = icmp eq i32 0, 0 ; <i1> [#uses=1] - br i1 %5, label %bb111.i, label %bb108.i - -bb108.i: ; preds = %bb103.i - ret i32 0 - -bb111.i: ; preds = %bb103.i - %6 = icmp sgt i32 %n.0.reg2mem.1.i, 7 ; <i1> [#uses=1] - br i1 %6, label %bb16, label %bb112.i - -bb112.i: ; preds = %bb111.i - unreachable -} diff --git a/test/CodeGen/X86/2009-10-08-MachineLICMBug.ll b/test/CodeGen/X86/2009-10-08-MachineLICMBug.ll deleted file mode 100644 index 91c5440b27..0000000000 --- a/test/CodeGen/X86/2009-10-08-MachineLICMBug.ll +++ /dev/null @@ -1,264 +0,0 @@ -; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic -stats |& grep {machine-licm} | grep 2 -; rdar://7274692 - -%0 = type { [125 x i32] } -%1 = type { i32 } -%struct..5sPragmaType = type { i8*, i32 } -%struct.AggInfo = type { i8, i8, i32, %struct.ExprList*, i32, %struct.AggInfo_col*, i32, i32, i32, %struct.AggInfo_func*, i32, i32 } -%struct.AggInfo_col = type { %struct.Table*, i32, i32, i32, i32, %struct.Expr* } -%struct.AggInfo_func = type { %struct.Expr*, %struct.FuncDef*, i32, i32 } -%struct.AuxData = type { i8*, void (i8*)* } -%struct.Bitvec = type { i32, i32, i32, %0 } -%struct.BtCursor = type { %struct.Btree*, %struct.BtShared*, %struct.BtCursor*, %struct.BtCursor*, i32 (i8*, i32, i8*, i32, i8*)*, i8*, i32, %struct.MemPage*, i32, %struct.CellInfo, i8, i8, i8*, i64, i32, i8, i32* } -%struct.BtLock = type { %struct.Btree*, i32, i8, %struct.BtLock* } -%struct.BtShared = type { %struct.Pager*, %struct.sqlite3*, %struct.BtCursor*, %struct.MemPage*, i8, i8, i8, i8, i8, i8, i8, i8, i32, i16, i16, i32, i32, i32, i32, i8, i32, i8*, void (i8*)*, %struct.sqlite3_mutex*, %struct.BusyHandler, i32, %struct.BtShared*, %struct.BtLock*, %struct.Btree* } -%struct.Btree = type { %struct.sqlite3*, %struct.BtShared*, i8, i8, i8, i32, %struct.Btree*, %struct.Btree* } -%struct.BtreeMutexArray = type { i32, [11 x %struct.Btree*] } -%struct.BusyHandler = type { i32 (i8*, i32)*, i8*, i32 } -%struct.CellInfo = type { i8*, i64, i32, i32, i16, i16, i16, i16 } -%struct.CollSeq = type { i8*, i8, i8, i8*, i32 (i8*, i32, i8*, i32, i8*)*, void (i8*)* } -%struct.Column = type { i8*, %struct.Expr*, i8*, i8*, i8, i8, i8, i8 } -%struct.Context = type { i64, i32, %struct.Fifo } -%struct.CountCtx = type { i64 } -%struct.Cursor = type { %struct.BtCursor*, i32, i64, i64, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i64, %struct.Btree*, i32, i8*, i64, i8*, %struct.KeyInfo*, i32, i64, %struct.sqlite3_vtab_cursor*, %struct.sqlite3_module*, i32, i32, i32*, i32*, i8* } -%struct.Db = type { i8*, %struct.Btree*, i8, i8, i8*, void (i8*)*, %struct.Schema* } -%struct.DbPage = type { %struct.Pager*, i32, %struct.DbPage*, %struct.DbPage*, %struct.PagerLruLink, %struct.DbPage*, i8, i8, i8, i8, i8, i16, %struct.DbPage*, %struct.DbPage*, i8* } -%struct.Expr = type { i8, i8, i16, %struct.CollSeq*, %struct.Expr*, %struct.Expr*, %struct.ExprList*, %struct..5sPragmaType, %struct..5sPragmaType, i32, i32, %struct.AggInfo*, i32, i32, %struct.Select*, %struct.Table*, i32 } -%struct.ExprList = type { i32, i32, i32, %struct.ExprList_item* } -%struct.ExprList_item = type { %struct.Expr*, i8*, i8, i8, i8 } -%struct.FILE = type { i8*, i32, i32, i16, i16, %struct..5sPragmaType, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct..5sPragmaType, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct..5sPragmaType, i32, i64 } -%struct.FKey = type { %struct.Table*, %struct.FKey*, i8*, %struct.FKey*, i32, %struct.sColMap*, i8, i8, i8, i8 } -%struct.Fifo = type { i32, %struct.FifoPage*, %struct.FifoPage* } -%struct.FifoPage = type { i32, i32, i32, %struct.FifoPage*, [1 x i64] } -%struct.FuncDef = type { i16, i8, i8, i8, i8*, %struct.FuncDef*, void (%struct.sqlite3_context*, i32, %struct.Mem**)*, void (%struct.sqlite3_context*, i32, %struct.Mem**)*, void (%struct.sqlite3_context*)*, [1 x i8] } -%struct.Hash = type { i8, i8, i32, i32, %struct.HashElem*, %struct._ht* } -%struct.HashElem = type { %struct.HashElem*, %struct.HashElem*, i8*, i8*, i32 } -%struct.IdList = type { %struct..5sPragmaType*, i32, i32 } -%struct.Index = type { i8*, i32, i32*, i32*, %struct.Table*, i32, i8, i8, i8*, %struct.Index*, %struct.Schema*, i8*, i8** } -%struct.KeyInfo = type { %struct.sqlite3*, i8, i8, i8, i32, i8*, [1 x %struct.CollSeq*] } -%struct.Mem = type { %struct.CountCtx, double, %struct.sqlite3*, i8*, i32, i16, i8, i8, void (i8*)* } -%struct.MemPage = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16, [5 x %struct._OvflCell], %struct.BtShared*, i8*, %struct.DbPage*, i32, %struct.MemPage* } -%struct.Module = type { %struct.sqlite3_module*, i8*, i8*, void (i8*)* } -%struct.Op = type { i8, i8, i8, i8, i32, i32, i32, %1 } -%struct.Pager = type { %struct.sqlite3_vfs*, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.Bitvec*, %struct.Bitvec*, i8*, i8*, i8*, i8*, %struct.sqlite3_file*, %struct.sqlite3_file*, %struct.sqlite3_file*, %struct.BusyHandler*, %struct.PagerLruList, %struct.DbPage*, %struct.DbPage*, %struct.DbPage*, i64, i64, i64, i64, i64, i32, void (%struct.DbPage*, i32)*, void (%struct.DbPage*, i32)*, i32, %struct.DbPage**, i8*, [16 x i8] } -%struct.PagerLruLink = type { %struct.DbPage*, %struct.DbPage* } -%struct.PagerLruList = type { %struct.DbPage*, %struct.DbPage*, %struct.DbPage* } -%struct.Schema = type { i32, %struct.Hash, %struct.Hash, %struct.Hash, %struct.Hash, %struct.Table*, i8, i8, i16, i32, %struct.sqlite3* } -%struct.Select = type { %struct.ExprList*, i8, i8, i8, i8, i8, i8, i8, %struct.SrcList*, %struct.Expr*, %struct.ExprList*, %struct.Expr*, %struct.ExprList*, %struct.Select*, %struct.Select*, %struct.Select*, %struct.Expr*, %struct.Expr*, i32, i32, [3 x i32] } -%struct.SrcList = type { i16, i16, [1 x %struct.SrcList_item] } -%struct.SrcList_item = type { i8*, i8*, i8*, %struct.Table*, %struct.Select*, i8, i8, i32, %struct.Expr*, %struct.IdList*, i64 } -%struct.Table = type { i8*, i32, %struct.Column*, i32, %struct.Index*, i32, %struct.Select*, i32, %struct.Trigger*, %struct.FKey*, i8*, %struct.Expr*, i32, i8, i8, i8, i8, i8, i8, i8, %struct.Module*, %struct.sqlite3_vtab*, i32, i8**, %struct.Schema* } -%struct.Trigger = type { i8*, i8*, i8, i8, %struct.Expr*, %struct.IdList*, %struct..5sPragmaType, %struct.Schema*, %struct.Schema*, %struct.TriggerStep*, %struct.Trigger* } -%struct.TriggerStep = type { i32, i32, %struct.Trigger*, %struct.Select*, %struct..5sPragmaType, %struct.Expr*, %struct.ExprList*, %struct.IdList*, %struct.TriggerStep*, %struct.TriggerStep* } -%struct.Vdbe = type { %struct.sqlite3*, %struct.Vdbe*, %struct.Vdbe*, i32, i32, %struct.Op*, i32, i32, i32*, %struct.Mem**, %struct.Mem*, i32, %struct.Cursor**, i32, %struct.Mem*, i8**, i32, i32, i32, %struct.Mem*, i32, i32, %struct.Fifo, i32, i32, %struct.Context*, i32, i32, i32, i32, i32, [25 x i32], i32, i32, i8**, i8*, %struct.Mem*, i8, i8, i8, i8, i8, i8, i32, i64, i32, %struct.BtreeMutexArray, i32, i8*, i32 } -%struct.VdbeFunc = type { %struct.FuncDef*, i32, [1 x %struct.AuxData] } -%struct._OvflCell = type { i8*, i16 } -%struct._RuneCharClass = type { [14 x i8], i32 } -%struct._RuneEntry = type { i32, i32, i32, i32* } -%struct._RuneLocale = type { [8 x i8], [32 x i8], i32 (i8*, i32, i8**)*, i32 (i32, i8*, i32, i8**)*, i32, [256 x i32], [256 x i32], [256 x i32], %struct._RuneRange, %struct._RuneRange, %struct._RuneRange, i8*, i32, i32, %struct._RuneCharClass* } -%struct._RuneRange = type { i32, %struct._RuneEntry* } -%struct.__sFILEX = type opaque -%struct._ht = type { i32, %struct.HashElem* } -%struct.callback_data = type { %struct.sqlite3*, i32, i32, %struct.FILE*, i32, i32, i32, i8*, [20 x i8], [100 x i32], [100 x i32], [20 x i8], %struct.previous_mode_data, [1024 x i8], i8* } -%struct.previous_mode_data = type { i32, i32, i32, [100 x i32] } -%struct.sColMap = type { i32, i8* } -%struct.sqlite3 = type { %struct.sqlite3_vfs*, i32, %struct.Db*, i32, i32, i32, i32, i8, i8, i8, i8, i32, %struct.CollSeq*, i64, i64, i32, i32, i32, %struct.sqlite3_mutex*, %struct.sqlite3InitInfo, i32, i8**, %struct.Vdbe*, i32, void (i8*, i8*)*, i8*, void (i8*, i8*, i64)*, i8*, i8*, i32 (i8*)*, i8*, void (i8*)*, i8*, void (i8*, i32, i8*, i8*, i64)*, void (i8*, %struct.sqlite3*, i32, i8*)*, void (i8*, %struct.sqlite3*, i32, i8*)*, i8*, %struct.Mem*, i8*, i8*, %union.anon, i32 (i8*, i32, i8*, i8*, i8*, i8*)*, i8*, i32 (i8*)*, i8*, i32, %struct.Hash, %struct.Table*, %struct.sqlite3_vtab**, i32, %struct.Hash, %struct.Hash, %struct.BusyHandler, i32, [2 x %struct.Db], i8 } -%struct.sqlite3InitInfo = type { i32, i32, i8 } -%struct.sqlite3_context = type { %struct.FuncDef*, %struct.VdbeFunc*, %struct.Mem, %struct.Mem*, i32, %struct.CollSeq* } -%struct.sqlite3_file = type { %struct.sqlite3_io_methods* } -%struct.sqlite3_index_constraint = type { i32, i8, i8, i32 } -%struct.sqlite3_index_constraint_usage = type { i32, i8 } -%struct.sqlite3_index_info = type { i32, %struct.sqlite3_index_constraint*, i32, %struct.sqlite3_index_constraint_usage*, %struct.sqlite3_index_constraint_usage*, i32, i8*, i32, i32, double } -%struct.sqlite3_io_methods = type { i32, i32 (%struct.sqlite3_file*)*, i32 (%struct.sqlite3_file*, i8*, i32, i64)*, i32 (%struct.sqlite3_file*, i8*, i32, i64)*, i32 (%struct.sqlite3_file*, i64)*, i32 (%struct.sqlite3_file*, i32)*, i32 (%struct.sqlite3_file*, i64*)*, i32 (%struct.sqlite3_file*, i32)*, i32 (%struct.sqlite3_file*, i32)*, i32 (%struct.sqlite3_file*)*, i32 (%struct.sqlite3_file*, i32, i8*)*, i32 (%struct.sqlite3_file*)*, i32 (%struct.sqlite3_file*)* } -%struct.sqlite3_module = type { i32, i32 (%struct.sqlite3*, i8*, i32, i8**, %struct.sqlite3_vtab**, i8**)*, i32 (%struct.sqlite3*, i8*, i32, i8**, %struct.sqlite3_vtab**, i8**)*, i32 (%struct.sqlite3_vtab*, %struct.sqlite3_index_info*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*, %struct.sqlite3_vtab_cursor**)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sqlite3_vtab_cursor*, i32, i8*, i32, %struct.Mem**)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sqlite3_vtab_cursor*, %struct.sqlite3_context*, i32)*, i32 (%struct.sqlite3_vtab_cursor*, i64*)*, i32 (%struct.sqlite3_vtab*, i32, %struct.Mem**, i64*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*, i32, i8*, void (%struct.sqlite3_context*, i32, %struct.Mem**)**, i8**)*, i32 (%struct.sqlite3_vtab*, i8*)* } -%struct.sqlite3_mutex = type opaque -%struct.sqlite3_vfs = type { i32, i32, i32, %struct.sqlite3_vfs*, i8*, i8*, i32 (%struct.sqlite3_vfs*, i8*, %struct.sqlite3_file*, i32, i32*)*, i32 (%struct.sqlite3_vfs*, i8*, i32)*, i32 (%struct.sqlite3_vfs*, i8*, i32)*, i32 (%struct.sqlite3_vfs*, i32, i8*)*, i32 (%struct.sqlite3_vfs*, i8*, i32, i8*)*, i8* (%struct.sqlite3_vfs*, i8*)*, void (%struct.sqlite3_vfs*, i32, i8*)*, i8* (%struct.sqlite3_vfs*, i8*, i8*)*, void (%struct.sqlite3_vfs*, i8*)*, i32 (%struct.sqlite3_vfs*, i32, i8*)*, i32 (%struct.sqlite3_vfs*, i32)*, i32 (%struct.sqlite3_vfs*, double*)* } -%struct.sqlite3_vtab = type { %struct.sqlite3_module*, i32, i8* } -%struct.sqlite3_vtab_cursor = type { %struct.sqlite3_vtab* } -%union.anon = type { double } - -@_DefaultRuneLocale = external global %struct._RuneLocale ; <%struct._RuneLocale*> [#uses=2] -@__stderrp = external global %struct.FILE* ; <%struct.FILE**> [#uses=1] -@.str10 = internal constant [16 x i8] c"Out of memory!\0A\00", align 1 ; <[16 x i8]*> [#uses=1] -@llvm.used = appending global [1 x i8*] [i8* bitcast (void (%struct.callback_data*, i8*)* @set_table_name to i8*)], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0] - -define fastcc void @set_table_name(%struct.callback_data* nocapture %p, i8* %zName) nounwind ssp { -entry: - %0 = getelementptr inbounds %struct.callback_data* %p, i32 0, i32 7 ; <i8**> [#uses=3] - %1 = load i8** %0, align 4 ; <i8*> [#uses=2] - %2 = icmp eq i8* %1, null ; <i1> [#uses=1] - br i1 %2, label %bb1, label %bb - -bb: ; preds = %entry - free i8* %1 - store i8* null, i8** %0, align 4 - br label %bb1 - -bb1: ; preds = %bb, %entry - %3 = icmp eq i8* %zName, null ; <i1> [#uses=1] - br i1 %3, label %return, label %bb2 - -bb2: ; preds = %bb1 - %4 = load i8* %zName, align 1 ; <i8> [#uses=2] - %5 = zext i8 %4 to i32 ; <i32> [#uses=2] - %6 = icmp sgt i8 %4, -1 ; <i1> [#uses=1] - br i1 %6, label %bb.i.i, label %bb1.i.i - -bb.i.i: ; preds = %bb2 - %7 = getelementptr inbounds %struct._RuneLocale* @_DefaultRuneLocale, i32 0, i32 5, i32 %5 ; <i32*> [#uses=1] - %8 = load i32* %7, align 4 ; <i32> [#uses=1] - %9 = and i32 %8, 256 ; <i32> [#uses=1] - br label %isalpha.exit - -bb1.i.i: ; preds = %bb2 - %10 = tail call i32 @__maskrune(i32 %5, i32 256) nounwind ; <i32> [#uses=1] - br label %isalpha.exit - -isalpha.exit: ; preds = %bb1.i.i, %bb.i.i - %storemerge.in.in.i.i = phi i32 [ %9, %bb.i.i ], [ %10, %bb1.i.i ] ; <i32> [#uses=1] - %storemerge.in.i.i = icmp eq i32 %storemerge.in.in.i.i, 0 ; <i1> [#uses=1] - br i1 %storemerge.in.i.i, label %bb3, label %bb5 - -bb3: ; preds = %isalpha.exit - %11 = load i8* %zName, align 1 ; <i8> [#uses=2] - %12 = icmp eq i8 %11, 95 ; <i1> [#uses=1] - br i1 %12, label %bb5, label %bb12.preheader - -bb5: ; preds = %bb3, %isalpha.exit - %.pre = load i8* %zName, align 1 ; <i8> [#uses=1] - br label %bb12.preheader - -bb12.preheader: ; preds = %bb5, %bb3 - %13 = phi i8 [ %.pre, %bb5 ], [ %11, %bb3 ] ; <i8> [#uses=1] - %needQuote.1.ph = phi i32 [ 0, %bb5 ], [ 1, %bb3 ] ; <i32> [#uses=2] - %14 = icmp eq i8 %13, 0 ; <i1> [#uses=1] - br i1 %14, label %bb13, label %bb7 - -bb7: ; preds = %bb11, %bb12.preheader - %i.011 = phi i32 [ %tmp17, %bb11 ], [ 0, %bb12.preheader ] ; <i32> [#uses=2] - %n.110 = phi i32 [ %26, %bb11 ], [ 0, %bb12.preheader ] ; <i32> [#uses=3] - %needQuote.19 = phi i32 [ %needQuote.0, %bb11 ], [ %needQuote.1.ph, %bb12.preheader ] ; <i32> [#uses=2] - %scevgep16 = getelementptr i8* %zName, i32 %i.011 ; <i8*> [#uses=2] - %tmp17 = add i32 %i.011, 1 ; <i32> [#uses=2] - %scevgep18 = getelementptr i8* %zName, i32 %tmp17 ; <i8*> [#uses=1] - %15 = load i8* %scevgep16, align 1 ; <i8> [#uses=2] - %16 = zext i8 %15 to i32 ; <i32> [#uses=2] - %17 = icmp sgt i8 %15, -1 ; <i1> [#uses=1] - br i1 %17, label %bb.i.i2, label %bb1.i.i3 - -bb.i.i2: ; preds = %bb7 - %18 = getelementptr inbounds %struct._RuneLocale* @_DefaultRuneLocale, i32 0, i32 5, i32 %16 ; <i32*> [#uses=1] - %19 = load i32* %18, align 4 ; <i32> [#uses=1] - %20 = and i32 %19, 1280 ; <i32> [#uses=1] - br label %isalnum.exit - -bb1.i.i3: ; preds = %bb7 - %21 = tail call i32 @__maskrune(i32 %16, i32 1280) nounwind ; <i32> [#uses=1] - br label %isalnum.exit - -isalnum.exit: ; preds = %bb1.i.i3, %bb.i.i2 - %storemerge.in.in.i.i4 = phi i32 [ %20, %bb.i.i2 ], [ %21, %bb1.i.i3 ] ; <i32> [#uses=1] - %storemerge.in.i.i5 = icmp eq i32 %storemerge.in.in.i.i4, 0 ; <i1> [#uses=1] - br i1 %storemerge.in.i.i5, label %bb8, label %bb11 - -bb8: ; preds = %isalnum.exit - %22 = load i8* %scevgep16, align 1 ; <i8> [#uses=2] - %23 = icmp eq i8 %22, 95 ; <i1> [#uses=1] - br i1 %23, label %bb11, label %bb9 - -bb9: ; preds = %bb8 - %24 = icmp eq i8 %22, 39 ; <i1> [#uses=1] - %25 = zext i1 %24 to i32 ; <i32> [#uses=1] - %.n.1 = add i32 %n.110, %25 ; <i32> [#uses=1] - br label %bb11 - -bb11: ; preds = %bb9, %bb8, %isalnum.exit - %needQuote.0 = phi i32 [ 1, %bb9 ], [ %needQuote.19, %isalnum.exit ], [ %needQuote.19, %bb8 ] ; <i32> [#uses=2] - %n.0 = phi i32 [ %.n.1, %bb9 ], [ %n.110, %isalnum.exit ], [ %n.110, %bb8 ] ; <i32> [#uses=1] - %26 = add nsw i32 %n.0, 1 ; <i32> [#uses=2] - %27 = load i8* %scevgep18, align 1 ; <i8> [#uses=1] - %28 = icmp eq i8 %27, 0 ; <i1> [#uses=1] - br i1 %28, label %bb13, label %bb7 - -bb13: ; preds = %bb11, %bb12.preheader - %n.1.lcssa = phi i32 [ 0, %bb12.preheader ], [ %26, %bb11 ] ; <i32> [#uses=2] - %needQuote.1.lcssa = phi i32 [ %needQuote.1.ph, %bb12.preheader ], [ %needQuote.0, %bb11 ] ; <i32> [#uses=1] - %29 = add nsw i32 %n.1.lcssa, 2 ; <i32> [#uses=1] - %30 = icmp eq i32 %needQuote.1.lcssa, 0 ; <i1> [#uses=3] - %n.1. = select i1 %30, i32 %n.1.lcssa, i32 %29 ; <i32> [#uses=1] - %31 = add nsw i32 %n.1., 1 ; <i32> [#uses=1] - %32 = malloc i8, i32 %31 ; <i8*> [#uses=7] - store i8* %32, i8** %0, align 4 - %33 = icmp eq i8* %32, null ; <i1> [#uses=1] - br i1 %33, label %bb16, label %bb17 - -bb16: ; preds = %bb13 - %34 = load %struct.FILE** @__stderrp, align 4 ; <%struct.FILE*> [#uses=1] - %35 = bitcast %struct.FILE* %34 to i8* ; <i8*> [#uses=1] - %36 = tail call i32 @"\01_fwrite$UNIX2003"(i8* getelementptr inbounds ([16 x i8]* @.str10, i32 0, i32 0), i32 1, i32 15, i8* %35) nounwind ; <i32> [#uses=0] - tail call void @exit(i32 1) noreturn nounwind - unreachable - -bb17: ; preds = %bb13 - br i1 %30, label %bb23.preheader, label %bb18 - -bb18: ; preds = %bb17 - store i8 39, i8* %32, align 4 - br label %bb23.preheader - -bb23.preheader: ; preds = %bb18, %bb17 - %n.3.ph = phi i32 [ 1, %bb18 ], [ 0, %bb17 ] ; <i32> [#uses=2] - %37 = load i8* %zName, align 1 ; <i8> [#uses=1] - %38 = icmp eq i8 %37, 0 ; <i1> [#uses=1] - br i1 %38, label %bb24, label %bb20 - -bb20: ; preds = %bb22, %bb23.preheader - %storemerge18 = phi i32 [ %tmp, %bb22 ], [ 0, %bb23.preheader ] ; <i32> [#uses=2] - %n.37 = phi i32 [ %n.4, %bb22 ], [ %n.3.ph, %bb23.preheader ] ; <i32> [#uses=3] - %scevgep = getelementptr i8* %zName, i32 %storemerge18 ; <i8*> [#uses=1] - %tmp = add i32 %storemerge18, 1 ; <i32> [#uses=2] - %scevgep15 = getelementptr i8* %zName, i32 %tmp ; <i8*> [#uses=1] - %39 = load i8* %scevgep, align 1 ; <i8> [#uses=2] - %40 = getelementptr inbounds i8* %32, i32 %n.37 ; <i8*> [#uses=1] - store i8 %39, i8* %40, align 1 - %41 = add nsw i32 %n.37, 1 ; <i32> [#uses=2] - %42 = icmp eq i8 %39, 39 ; <i1> [#uses=1] - br i1 %42, label %bb21, label %bb22 - -bb21: ; preds = %bb20 - %43 = getelementptr inbounds i8* %32, i32 %41 ; <i8*> [#uses=1] - store i8 39, i8* %43, align 1 - %44 = add nsw i32 %n.37, 2 ; <i32> [#uses=1] - br label %bb22 - -bb22: ; preds = %bb21, %bb20 - %n.4 = phi i32 [ %44, %bb21 ], [ %41, %bb20 ] ; <i32> [#uses=2] - %45 = load i8* %scevgep15, align 1 ; <i8> [#uses=1] - %46 = icmp eq i8 %45, 0 ; <i1> [#uses=1] - br i1 %46, label %bb24, label %bb20 - -bb24: ; preds = %bb22, %bb23.preheader - %n.3.lcssa = phi i32 [ %n.3.ph, %bb23.preheader ], [ %n.4, %bb22 ] ; <i32> [#uses=3] - br i1 %30, label %bb26, label %bb25 - -bb25: ; preds = %bb24 - %47 = getelementptr inbounds i8* %32, i32 %n.3.lcssa ; <i8*> [#uses=1] - store i8 39, i8* %47, align 1 - %48 = add nsw i32 %n.3.lcssa, 1 ; <i32> [#uses=1] - br label %bb26 - -bb26: ; preds = %bb25, %bb24 - %n.5 = phi i32 [ %48, %bb25 ], [ %n.3.lcssa, %bb24 ] ; <i32> [#uses=1] - %49 = getelementptr inbounds i8* %32, i32 %n.5 ; <i8*> [#uses=1] - store i8 0, i8* %49, align 1 - ret void - -return: ; preds = %bb1 - ret void -} - -declare i32 @"\01_fwrite$UNIX2003"(i8*, i32, i32, i8*) - -declare void @exit(i32) noreturn nounwind - -declare i32 @__maskrune(i32, i32) diff --git a/test/CodeGen/X86/GC/simple_ocaml.ll b/test/CodeGen/X86/GC/simple_ocaml.ll deleted file mode 100644 index f765dc029d..0000000000 --- a/test/CodeGen/X86/GC/simple_ocaml.ll +++ /dev/null @@ -1,42 +0,0 @@ -; RUN: llc < %s | grep caml.*__frametable -; RUN: llc < %s -march=x86 | grep {movl .0} - -%struct.obj = type { i8*, %struct.obj* } - -define %struct.obj* @fun(%struct.obj* %head) gc "ocaml" { -entry: - %gcroot.0 = alloca i8* - %gcroot.1 = alloca i8* - - call void @llvm.gcroot(i8** %gcroot.0, i8* null) - call void @llvm.gcroot(i8** %gcroot.1, i8* null) - - %local.0 = bitcast i8** %gcroot.0 to %struct.obj** - %local.1 = bitcast i8** %gcroot.1 to %struct.obj** - - store %struct.obj* %head, %struct.obj** %local.0 - br label %bb.loop -bb.loop: - %t0 = load %struct.obj** %local.0 - %t1 = getelementptr %struct.obj* %t0, i32 0, i32 1 - %t2 = bitcast %struct.obj* %t0 to i8* - %t3 = bitcast %struct.obj** %t1 to i8** - %t4 = call i8* @llvm.gcread(i8* %t2, i8** %t3) - %t5 = bitcast i8* %t4 to %struct.obj* - %t6 = icmp eq %struct.obj* %t5, null - br i1 %t6, label %bb.loop, label %bb.end -bb.end: - %t7 = malloc %struct.obj - store %struct.obj* %t7, %struct.obj** %local.1 - %t8 = bitcast %struct.obj* %t7 to i8* - %t9 = load %struct.obj** %local.0 - %t10 = getelementptr %struct.obj* %t9, i32 0, i32 1 - %t11 = bitcast %struct.obj* %t9 to i8* - %t12 = bitcast %struct.obj** %t10 to i8** - call void @llvm.gcwrite(i8* %t8, i8* %t11, i8** %t12) - ret %struct.obj* %t7 -} - -declare void @llvm.gcroot(i8** %value, i8* %tag) -declare void @llvm.gcwrite(i8* %value, i8* %obj, i8** %field) -declare i8* @llvm.gcread(i8* %obj, i8** %field) diff --git a/test/CodeGen/X86/byval2.ll b/test/CodeGen/X86/byval2.ll index 03a9f0fb74..196efe58e6 100644 --- a/test/CodeGen/X86/byval2.ll +++ b/test/CodeGen/X86/byval2.ll @@ -37,8 +37,8 @@ entry: store i64 %b, i64* %tmp2, align 16 %tmp4 = getelementptr %struct.s* %d, i32 0, i32 2 store i64 %c, i64* %tmp4, align 16 - call void @f( %struct.s* %d byval) - call void @f( %struct.s* %d byval) + call void @f( %struct.s*byval %d ) + call void @f( %struct.s*byval %d ) ret void } diff --git a/test/CodeGen/X86/byval3.ll b/test/CodeGen/X86/byval3.ll index 8d5bb6d972..f3b125c6e3 100644 --- a/test/CodeGen/X86/byval3.ll +++ b/test/CodeGen/X86/byval3.ll @@ -45,8 +45,8 @@ entry: store i32 %a5, i32* %tmp8, align 16 %tmp10 = getelementptr %struct.s* %d, i32 0, i32 5 store i32 %a6, i32* %tmp10, align 16 - call void @f( %struct.s* %d byval) - call void @f( %struct.s* %d byval) + call void @f( %struct.s* byval %d) + call void @f( %struct.s* byval %d) ret void } diff --git a/test/CodeGen/X86/byval4.ll b/test/CodeGen/X86/byval4.ll index ae1a79a1e1..b7a4aa3f9b 100644 --- a/test/CodeGen/X86/byval4.ll +++ b/test/CodeGen/X86/byval4.ll @@ -51,8 +51,8 @@ entry: store i16 %a5, i16* %tmp8, align 16 %tmp10 = getelementptr %struct.s* %a, i32 0, i32 5 store i16 %a6, i16* %tmp10, align 16 - call void @f( %struct.s* %a byval ) - call void @f( %struct.s* %a byval ) + call void @f( %struct.s* byval %a ) + call void @f( %struct.s* byval %a ) ret void } diff --git a/test/CodeGen/X86/byval5.ll b/test/CodeGen/X86/byval5.ll index a376709d73..dca0936022 100644 --- a/test/CodeGen/X86/byval5.ll +++ b/test/CodeGen/X86/byval5.ll @@ -59,8 +59,8 @@ entry: store i8 %a5, i8* %tmp8, align 8 %tmp10 = getelementptr %struct.s* %a, i32 0, i32 5 store i8 %a6, i8* %tmp10, align 8 - call void @f( %struct.s* %a byval ) - call void @f( %struct.s* %a byval ) + call void @f( %struct.s* byval %a ) + call void @f( %struct.s* byval %a ) ret void } diff --git a/test/CodeGen/X86/fast-isel-call.ll b/test/CodeGen/X86/fast-isel-call.ll index 2fbe4e27bf..3159741cd9 100644 --- a/test/CodeGen/X86/fast-isel-call.ll +++ b/test/CodeGen/X86/fast-isel-call.ll @@ -14,12 +14,12 @@ BB2: ; CHECK: calll ; CHECK-NEXT: testb $1 } -declare i1 @foo() zeroext nounwind +declare zeroext i1 @foo() nounwind declare void @foo2(%struct.s* byval) define void @test2(%struct.s* %d) nounwind { - call void @foo2(%struct.s* %d byval) + call void @foo2(%struct.s* byval %d ) ret void ; CHECK: test2: ; CHECK: movl (%eax) diff --git a/test/CodeGen/X86/opt-ext-uses.ll b/test/CodeGen/X86/opt-ext-uses.ll index fa2aef5174..72fb38b27d 100644 --- a/test/CodeGen/X86/opt-ext-uses.ll +++ b/test/CodeGen/X86/opt-ext-uses.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 | grep movw | count 1 -define i16 @t() signext { +define signext i16 @t() { entry: %tmp180 = load i16* null, align 2 ; <i16> [#uses=3] %tmp180181 = sext i16 %tmp180 to i32 ; <i32> [#uses=1] diff --git a/test/CodeGen/X86/sext-trunc.ll b/test/CodeGen/X86/sext-trunc.ll index 2eaf42577c..22b3791ba5 100644 --- a/test/CodeGen/X86/sext-trunc.ll +++ b/test/CodeGen/X86/sext-trunc.ll @@ -3,7 +3,7 @@ ; RUN: not grep movz %t ; RUN: not grep and %t -define i8 @foo(i16 signext %x) signext nounwind { +define signext i8 @foo(i16 signext %x) nounwind { %retval56 = trunc i16 %x to i8 ret i8 %retval56 } diff --git a/test/CodeGen/X86/tailcallbyval.ll b/test/CodeGen/X86/tailcallbyval.ll index 7002560c82..03d6f9411e 100644 --- a/test/CodeGen/X86/tailcallbyval.ll +++ b/test/CodeGen/X86/tailcallbyval.ll @@ -13,6 +13,6 @@ entry: define fastcc i32 @tailcaller(%struct.s* byval %a) nounwind { entry: - %tmp4 = tail call fastcc i32 @tailcallee(%struct.s* %a byval) + %tmp4 = tail call fastcc i32 @tailcallee(%struct.s* byval %a ) ret i32 %tmp4 } diff --git a/test/CodeGen/X86/tailcallbyval64.ll b/test/CodeGen/X86/tailcallbyval64.ll index 1b1efe713c..7ecf379cd9 100644 --- a/test/CodeGen/X86/tailcallbyval64.ll +++ b/test/CodeGen/X86/tailcallbyval64.ll @@ -37,6 +37,6 @@ define fastcc i64 @tailcaller(i64 %b, %struct.s* byval %a) { entry: %tmp2 = getelementptr %struct.s* %a, i32 0, i32 1 %tmp3 = load i64* %tmp2, align 8 - %tmp4 = tail call fastcc i64 @tailcallee(%struct.s* %a byval, i64 %tmp3, i64 %b, i64 7, i64 13, i64 17) + %tmp4 = tail call fastcc i64 @tailcallee(%struct.s* byval %a , i64 %tmp3, i64 %b, i64 7, i64 13, i64 17) ret i64 %tmp4 } diff --git a/test/CodeGen/X86/trunc-to-bool.ll b/test/CodeGen/X86/trunc-to-bool.ll index 6062084106..92b6859d1d 100644 --- a/test/CodeGen/X86/trunc-to-bool.ll +++ b/test/CodeGen/X86/trunc-to-bool.ll @@ -3,7 +3,7 @@ ; value and as the operand of a branch. ; RUN: llc < %s -march=x86 | FileCheck %s -define i1 @test1(i32 %X) zeroext nounwind { +define zeroext i1 @test1(i32 %X) nounwind { %Y = trunc i32 %X to i1 ret i1 %Y } diff --git a/test/CodeGen/X86/umul-with-overflow.ll b/test/CodeGen/X86/umul-with-overflow.ll index 84fcbc7f82..e5858de6ed 100644 --- a/test/CodeGen/X86/umul-with-overflow.ll +++ b/test/CodeGen/X86/umul-with-overflow.ll @@ -1,7 +1,7 @@ ; RUN: llc < %s -march=x86 | FileCheck %s declare {i32, i1} @llvm.umul.with.overflow.i32(i32 %a, i32 %b) -define i1 @a(i32 %x) zeroext nounwind { +define zeroext i1 @a(i32 %x) nounwind { %res = call {i32, i1} @llvm.umul.with.overflow.i32(i32 %x, i32 3) %obil = extractvalue {i32, i1} %res, 1 ret i1 %obil diff --git a/test/CodeGen/X86/x86-64-malloc.ll b/test/CodeGen/X86/x86-64-malloc.ll deleted file mode 100644 index 4aa0ec3dc9..0000000000 --- a/test/CodeGen/X86/x86-64-malloc.ll +++ /dev/null @@ -1,12 +0,0 @@ -; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s -; CHECK: shll $3, {{%edi|%ecx}} -; PR3829 -; The generated code should multiply by 3 (sizeof i8*) as an i32, -; not as an i64! - -define i8** @test(i32 %sz) { - %sub = add i32 %sz, 536870911 ; <i32> [#uses=1] - %call = malloc i8*, i32 %sub ; <i8**> [#uses=1] - ret i8** %call -} diff --git a/test/CodeGen/X86/x86-64-shortint.ll b/test/CodeGen/X86/x86-64-shortint.ll index 7f96543ba4..cbf658888c 100644 --- a/test/CodeGen/X86/x86-64-shortint.ll +++ b/test/CodeGen/X86/x86-64-shortint.ll @@ -5,7 +5,7 @@ target triple = "x86_64-apple-darwin8" define void @bar(i16 zeroext %A) { - tail call void @foo( i16 %A signext ) + tail call void @foo( i16 signext %A ) ret void } declare void @foo(i16 signext ) |