From f4fe016fa15f703fe9c1b932d1e81e2c718521db Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 6 Jun 2009 08:20:29 +0000 Subject: Import LLVM, at r72995. We should now have support for #pragma weak. --- test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll | 8 +- test/CodeGen/X86/2006-05-25-CycleInDAG.ll | 2 +- test/CodeGen/X86/2007-01-08-InstrSched.ll | 14 +- test/CodeGen/X86/2007-01-13-StackPtrIndex.ll | 50 +- test/CodeGen/X86/2007-03-01-SpillerCrash.ll | 22 +- .../X86/2007-04-11-InlineAsmVectorResult.ll | 2 +- test/CodeGen/X86/2007-04-24-VectorCrash.ll | 18 +- test/CodeGen/X86/2007-06-29-VecFPConstantCSEBug.ll | 4 +- test/CodeGen/X86/2007-07-10-StackerAssert.ll | 2 +- test/CodeGen/X86/2007-09-18-ShuffleXformBug.ll | 2 +- test/CodeGen/X86/2007-10-12-SpillerUnfold1.ll | 42 +- test/CodeGen/X86/2007-11-02-BadAsm.ll | 4 +- test/CodeGen/X86/2007-11-06-InstrSched.ll | 4 +- test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll | 4 +- test/CodeGen/X86/2007-12-11-FoldImpDefSpill.ll | 2 +- test/CodeGen/X86/2008-01-16-FPStackifierAssert.ll | 14 +- test/CodeGen/X86/2008-02-06-LoadFoldingBug.ll | 4 +- test/CodeGen/X86/2008-02-08-LoadFoldingBug.ll | 16 +- test/CodeGen/X86/2008-02-27-DeadSlotElimBug.ll | 12 +- test/CodeGen/X86/2008-02-27-PEICrash.ll | 12 +- test/CodeGen/X86/2008-03-18-CoalescerBug.ll | 4 +- test/CodeGen/X86/2008-03-25-TwoAddrPassBug.ll | 10 +- test/CodeGen/X86/2008-07-19-movups-spills.ll | 1122 ++++++++++---------- test/CodeGen/X86/2008-07-23-VSetCC.ll | 6 +- test/CodeGen/X86/2008-08-23-X86-64AsmBug.ll | 2 +- test/CodeGen/X86/2008-10-27-CoalescerBug.ll | 4 +- test/CodeGen/X86/2008-11-03-F80VAARG.ll | 2 +- test/CodeGen/X86/2008-12-05-SpillerCrash.ll | 24 +- test/CodeGen/X86/2009-01-16-UIntToFP.ll | 4 +- test/CodeGen/X86/2009-02-12-SpillerBug.ll | 6 +- test/CodeGen/X86/2009-02-25-CommuteBug.ll | 2 +- test/CodeGen/X86/2009-03-03-BitcastLongDouble.ll | 2 +- test/CodeGen/X86/2009-03-09-SpillerBug.ll | 2 +- test/CodeGen/X86/2009-03-12-CPAlignBug.ll | 8 +- test/CodeGen/X86/2009-03-23-MultiUseSched.ll | 2 +- test/CodeGen/X86/2009-06-03-Win64DisableRedZone.ll | 9 + test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll | 12 + test/CodeGen/X86/2009-06-04-VirtualLiveIn.ll | 48 + .../X86/2009-06-05-ScalarToVectorByteMMX.ll | 7 + test/CodeGen/X86/2009-06-05-VZextByteShort.ll | 37 + test/CodeGen/X86/2009-06-05-VariableIndexInsert.ll | 11 + test/CodeGen/X86/2009-06-05-sitofpCrash.ll | 13 + test/CodeGen/X86/2009-06-06-ConcatVectors.ll | 8 + test/CodeGen/X86/abi-isel.ll | 20 - test/CodeGen/X86/break-anti-dependencies.ll | 20 +- test/CodeGen/X86/coalescer-commute1.ll | 2 +- test/CodeGen/X86/coalescer-commute2.ll | 2 +- test/CodeGen/X86/coalescer-commute4.ll | 4 +- test/CodeGen/X86/complex-fca.ll | 2 +- test/CodeGen/X86/constant-pool-remat-0.ll | 4 +- test/CodeGen/X86/dagcombine-buildvector.ll | 16 +- test/CodeGen/X86/extract-combine.ll | 6 +- test/CodeGen/X86/fabs.ll | 2 +- test/CodeGen/X86/fast-isel.ll | 8 +- test/CodeGen/X86/fmul-zero.ll | 9 + test/CodeGen/X86/fold-pcmpeqd-0.ll | 32 +- test/CodeGen/X86/fold-pcmpeqd-2.ll | 16 +- test/CodeGen/X86/fp-in-intregs.ll | 2 +- test/CodeGen/X86/fp-stack-compare.ll | 2 +- test/CodeGen/X86/fp_constant_op.ll | 8 +- test/CodeGen/X86/fp_load_fold.ll | 8 +- test/CodeGen/X86/fsxor-alignment.ll | 4 +- test/CodeGen/X86/full-lsr.ll | 4 +- test/CodeGen/X86/ga-offset.ll | 2 +- test/CodeGen/X86/illegal-vector-args-return.ll | 4 +- test/CodeGen/X86/inline-asm-fpstack.ll | 2 +- test/CodeGen/X86/inline-asm-mrv.ll | 2 +- test/CodeGen/X86/inline-asm-x-scalar.ll | 2 +- test/CodeGen/X86/iv-users-in-other-loops.ll | 122 +-- test/CodeGen/X86/masked-iv-safe.ll | 48 +- test/CodeGen/X86/masked-iv-unsafe.ll | 78 +- test/CodeGen/X86/multiple-return-values.ll | 2 +- test/CodeGen/X86/neg_fp.ll | 4 +- test/CodeGen/X86/negate-add-zero.ll | 46 +- test/CodeGen/X86/negative-sin.ll | 4 +- test/CodeGen/X86/peep-test-0.ll | 2 +- test/CodeGen/X86/peep-test-1.ll | 2 +- test/CodeGen/X86/phys_subreg_coalesce.ll | 8 +- test/CodeGen/X86/pr2656.ll | 4 +- test/CodeGen/X86/pr3154.ll | 2 +- test/CodeGen/X86/pr3457.ll | 6 +- test/CodeGen/X86/pre-split1.ll | 6 +- test/CodeGen/X86/pre-split10.ll | 14 +- test/CodeGen/X86/pre-split4.ll | 8 +- test/CodeGen/X86/pre-split5.ll | 2 +- test/CodeGen/X86/pre-split6.ll | 4 +- test/CodeGen/X86/pre-split7.ll | 8 +- test/CodeGen/X86/pre-split8.ll | 8 +- test/CodeGen/X86/pre-split9.ll | 8 +- test/CodeGen/X86/red-zone2.ll | 9 + test/CodeGen/X86/remat-constant.ll | 2 +- test/CodeGen/X86/shrink-fp-const1.ll | 2 +- test/CodeGen/X86/small-byval-memcpy.ll | 2 +- test/CodeGen/X86/soft-fp.ll | 2 +- test/CodeGen/X86/sse-align-0.ll | 4 +- test/CodeGen/X86/sse-align-2.ll | 4 +- test/CodeGen/X86/sse-fcopysign.ll | 2 +- test/CodeGen/X86/sse41-extractps-bitcast-1.ll | 2 +- test/CodeGen/X86/sse41-pmovx.ll | 2 +- test/CodeGen/X86/stack-align.ll | 2 +- test/CodeGen/X86/storetrunc-fp.ll | 2 +- test/CodeGen/X86/stride-reuse.ll | 2 +- test/CodeGen/X86/twoaddr-coalesce-2.ll | 4 +- test/CodeGen/X86/vec_extract.ll | 6 +- test/CodeGen/X86/vec_fneg.ll | 4 +- test/CodeGen/X86/vec_ins_extract.ll | 12 +- test/CodeGen/X86/vec_insert.ll | 2 +- test/CodeGen/X86/vec_logical.ll | 2 +- test/CodeGen/X86/vec_select.ll | 2 +- test/CodeGen/X86/vec_shuffle-27.ll | 6 +- test/CodeGen/X86/vec_shuffle-3.ll | 4 +- test/CodeGen/X86/vec_shuffle-5.ll | 2 +- test/CodeGen/X86/vec_splat.ll | 4 +- test/CodeGen/X86/vec_ss_load_fold.ll | 4 +- test/CodeGen/X86/vec_zero.ll | 2 +- test/CodeGen/X86/vector.ll | 20 +- test/CodeGen/X86/widen_arith-6.ll | 4 +- test/CodeGen/X86/widen_shuffle-1.ll | 2 +- test/CodeGen/X86/widen_shuffle-2.ll | 2 +- 119 files changed, 1213 insertions(+), 1058 deletions(-) create mode 100644 test/CodeGen/X86/2009-06-03-Win64DisableRedZone.ll create mode 100644 test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll create mode 100644 test/CodeGen/X86/2009-06-04-VirtualLiveIn.ll create mode 100644 test/CodeGen/X86/2009-06-05-ScalarToVectorByteMMX.ll create mode 100644 test/CodeGen/X86/2009-06-05-VZextByteShort.ll create mode 100644 test/CodeGen/X86/2009-06-05-VariableIndexInsert.ll create mode 100644 test/CodeGen/X86/2009-06-05-sitofpCrash.ll create mode 100644 test/CodeGen/X86/2009-06-06-ConcatVectors.ll create mode 100644 test/CodeGen/X86/fmul-zero.ll create mode 100644 test/CodeGen/X86/red-zone2.ll (limited to 'test/CodeGen/X86') diff --git a/test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll b/test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll index b5d215b2057a..04035aca998f 100644 --- a/test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll +++ b/test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll @@ -13,7 +13,7 @@ no_exit.16: ; preds = %no_exit.16, %no_exit.16.preheader loopexit.16.loopexit: ; preds = %no_exit.16 br label %no_exit.18 no_exit.18: ; preds = %loopexit.20, %loopexit.16.loopexit - %tmp.882 = add float 0.000000e+00, 0.000000e+00 ; [#uses=2] + %tmp.882 = fadd float 0.000000e+00, 0.000000e+00 ; [#uses=2] br i1 false, label %loopexit.19, label %no_exit.19.preheader no_exit.19.preheader: ; preds = %no_exit.18 ret void @@ -21,9 +21,9 @@ loopexit.19: ; preds = %no_exit.18 br i1 false, label %loopexit.20, label %no_exit.20 no_exit.20: ; preds = %loopexit.21, %loopexit.19 %ai2.1122.tmp.3 = phi float [ %tmp.958, %loopexit.21 ], [ %tmp.882, %loopexit.19 ] ; [#uses=1] - %tmp.950 = mul float %tmp.882, %ai2.1122.tmp.3 ; [#uses=1] - %tmp.951 = sub float 0.000000e+00, %tmp.950 ; [#uses=1] - %tmp.958 = add float 0.000000e+00, 0.000000e+00 ; [#uses=1] + %tmp.950 = fmul float %tmp.882, %ai2.1122.tmp.3 ; [#uses=1] + %tmp.951 = fsub float 0.000000e+00, %tmp.950 ; [#uses=1] + %tmp.958 = fadd float 0.000000e+00, 0.000000e+00 ; [#uses=1] br i1 false, label %loopexit.21, label %no_exit.21.preheader no_exit.21.preheader: ; preds = %no_exit.20 ret void diff --git a/test/CodeGen/X86/2006-05-25-CycleInDAG.ll b/test/CodeGen/X86/2006-05-25-CycleInDAG.ll index c9a004965fd7..78838d1141a4 100644 --- a/test/CodeGen/X86/2006-05-25-CycleInDAG.ll +++ b/test/CodeGen/X86/2006-05-25-CycleInDAG.ll @@ -11,7 +11,7 @@ cond_next33: ; preds = %0 %tmp58.i = or i32 0, %tmp61.i.upgrd.1 ; [#uses=1] %tmp62.i = or i32 %tmp58.i, 0 ; [#uses=1] %tmp62.i.upgrd.2 = sitofp i32 %tmp62.i to double ; [#uses=1] - %tmp64.i = add double %tmp62.i.upgrd.2, %tmp44.i ; [#uses=1] + %tmp64.i = fadd double %tmp62.i.upgrd.2, %tmp44.i ; [#uses=1] %tmp68.i = call double @foo( double %tmp64.i, i32 0 ) ; [#uses=0] ret i32 0 } diff --git a/test/CodeGen/X86/2007-01-08-InstrSched.ll b/test/CodeGen/X86/2007-01-08-InstrSched.ll index 811e9ac6d182..3b365f35cb22 100644 --- a/test/CodeGen/X86/2007-01-08-InstrSched.ll +++ b/test/CodeGen/X86/2007-01-08-InstrSched.ll @@ -3,12 +3,12 @@ ; RUN: %prcontext {mulss LCPI1_3} 1 | grep mulss | count 1 define float @foo(float %x) { - %tmp1 = mul float %x, 3.000000e+00 - %tmp3 = mul float %x, 5.000000e+00 - %tmp5 = mul float %x, 7.000000e+00 - %tmp7 = mul float %x, 1.100000e+01 - %tmp10 = add float %tmp1, %tmp3 - %tmp12 = add float %tmp10, %tmp5 - %tmp14 = add float %tmp12, %tmp7 + %tmp1 = fmul float %x, 3.000000e+00 + %tmp3 = fmul float %x, 5.000000e+00 + %tmp5 = fmul float %x, 7.000000e+00 + %tmp7 = fmul float %x, 1.100000e+01 + %tmp10 = fadd float %tmp1, %tmp3 + %tmp12 = fadd float %tmp10, %tmp5 + %tmp14 = fadd float %tmp12, %tmp7 ret float %tmp14 } diff --git a/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll b/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll index d1d0ea845781..c03d982aeb15 100644 --- a/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll +++ b/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll @@ -139,7 +139,7 @@ b341: %r353 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r352 %r354 = load float* %r353 %r362 = load float* bitcast ([128 x i64]* @i6000 to float*) - %r363 = add float 0.000000e+00, %r362 + %r363 = fadd float 0.000000e+00, %r362 %r370 = load float* bitcast ([128 x i64]* @i6000 to float*) %r376 = icmp slt i64 %r16, 0 br i1 %r376, label %b377, label %a35b @@ -155,11 +155,11 @@ a35b: %e785 = shl i64 %w1865, 0 %b1877 = mul i64 %w1865, 0 %s795 = add i64 %b1877, 0 - %r399 = add float %r354, 0.000000e+00 - %r402 = add float %r370, 0.000000e+00 - %r403 = add float %r348, 0.000000e+00 + %r399 = fadd float %r354, 0.000000e+00 + %r402 = fadd float %r370, 0.000000e+00 + %r403 = fadd float %r348, 0.000000e+00 %r411 = add i64 %s795, 0 - %r431 = add float %r362, 0.000000e+00 + %r431 = fadd float %r362, 0.000000e+00 %r454 = add i64 %e785, 0 %r457 = add i64 %e785, 0 %r459 = icmp slt i64 %r457, 0 @@ -230,21 +230,21 @@ a45b714: %r750 = add i64 %r717, 0 %r751 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r750 %r752 = load float* %r751 - %r753 = add float %r752, %r746 - %r754 = add float %r728, %r722 - %r755 = add float %r734, %r754 - %r756 = add float %r755, %r740 - %r757 = add float %r753, %r756 - %r759 = add float %r757, %r540 + %r753 = fadd float %r752, %r746 + %r754 = fadd float %r728, %r722 + %r755 = fadd float %r734, %r754 + %r756 = fadd float %r755, %r740 + %r757 = fadd float %r753, %r756 + %r759 = fadd float %r757, %r540 %r770 = add i64 %r717, 0 %r771 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r770 %r772 = load float* %r771 %r776 = add i64 %r717, 0 %r777 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r776 %r778 = load float* %r777 - %r781 = add float %r363, %r772 - %r782 = add float %r781, %r778 - %r783 = add float %r551, %r782 + %r781 = fadd float %r363, %r772 + %r782 = fadd float %r781, %r778 + %r783 = fadd float %r551, %r782 br label %b712 a57b: br i1 %r335, label %a66b, label %b1086 @@ -310,10 +310,10 @@ a53b1019: %r1035 = load float* %r1034 %r1037 = bitcast i8* %c22010 to float* %r1040 = getelementptr float* %r1037, i64 %r1025 - %r1044 = add float %r864, %r1035 - %r1046 = add float %r870, %r1027 - %r1047 = add float %r1044, %r1046 - %r1048 = add float %r851, %r1047 + %r1044 = fadd float %r864, %r1035 + %r1046 = fadd float %r870, %r1027 + %r1047 = fadd float %r1044, %r1046 + %r1048 = fadd float %r851, %r1047 %v1886 = add i64 %w1885, 0 %u1890 = icmp slt i64 %v1886, %b1889 br i1 %u1890, label %b1016, label %a53b1019 @@ -341,7 +341,7 @@ b1117: %r1132 = bitcast i8* %c22012 to float* %r1134 = getelementptr float* %r1132, i64 %w1915 %r1135 = load float* %r1134 - %r1136 = add float %r1123, %r1135 + %r1136 = fadd float %r1123, %r1135 %r1138 = icmp slt i64 %r1114, 0 br i1 %r1138, label %b1139, label %a63b b1139: @@ -387,7 +387,7 @@ b1263: a63b1266: %w1944 = phi i64 [ 0, %a63b1266q ], [ %v1945, %a63b1266 ] %s1377 = phi i64 [ %s1374, %a63b1266q ], [ %r1297, %a63b1266 ] - %r1282 = add float %r1136, 0.000000e+00 + %r1282 = fadd float %r1136, 0.000000e+00 %r1297 = add i64 %s1377, 0 %v1945 = add i64 %w1944, 0 %u1949 = icmp slt i64 %v1945, %b1948 @@ -418,7 +418,7 @@ a74b: %r1379 = add i64 %s1543, 0 %r1403 = add i64 %r1355, 0 %r1422 = add i64 %r1348, 0 - %r1526 = add float %r1372, 0.000000e+00 + %r1526 = fadd float %r1372, 0.000000e+00 %r1573 = add i64 %w1958, 0 %r1581 = icmp slt i64 %r1573, 0 %v1959 = add i64 %w1958, 0 @@ -448,10 +448,10 @@ a97b: %r1763 = load float* %r1762 %r1767 = add i64 %r1622, 0 %r1768 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r1767 - %r1772 = add float %r1763, 0.000000e+00 - %r1773 = add float %r1772, 0.000000e+00 - %r1809 = add float %r1757, 0.000000e+00 - %r1810 = add float %r1773, %r1809 + %r1772 = fadd float %r1763, 0.000000e+00 + %r1773 = fadd float %r1772, 0.000000e+00 + %r1809 = fadd float %r1757, 0.000000e+00 + %r1810 = fadd float %r1773, %r1809 store float %r1810, float* %r1768 %r1818 = add i64 %w1970, 0 %r1826 = icmp slt i64 %r1818, 0 diff --git a/test/CodeGen/X86/2007-03-01-SpillerCrash.ll b/test/CodeGen/X86/2007-03-01-SpillerCrash.ll index d4176f1d78cb..721b6e7e2094 100644 --- a/test/CodeGen/X86/2007-03-01-SpillerCrash.ll +++ b/test/CodeGen/X86/2007-03-01-SpillerCrash.ll @@ -3,12 +3,12 @@ define void @test() nounwind { test.exit: - mul <4 x float> zeroinitializer, zeroinitializer ; <<4 x float>>:0 [#uses=4] + fmul <4 x float> zeroinitializer, zeroinitializer ; <<4 x float>>:0 [#uses=4] load <4 x float>* null ; <<4 x float>>:1 [#uses=1] shufflevector <4 x float> %1, <4 x float> undef, <4 x i32> < i32 3, i32 3, i32 3, i32 3 > ; <<4 x float>>:2 [#uses=1] - mul <4 x float> %0, %2 ; <<4 x float>>:3 [#uses=1] - sub <4 x float> zeroinitializer, %3 ; <<4 x float>>:4 [#uses=1] - mul <4 x float> %4, zeroinitializer ; <<4 x float>>:5 [#uses=2] + fmul <4 x float> %0, %2 ; <<4 x float>>:3 [#uses=1] + fsub <4 x float> zeroinitializer, %3 ; <<4 x float>>:4 [#uses=1] + fmul <4 x float> %4, zeroinitializer ; <<4 x float>>:5 [#uses=2] bitcast <4 x float> zeroinitializer to <4 x i32> ; <<4 x i32>>:6 [#uses=1] and <4 x i32> %6, < i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647 > ; <<4 x i32>>:7 [#uses=1] bitcast <4 x i32> %7 to <4 x float> ; <<4 x float>>:8 [#uses=2] @@ -23,13 +23,13 @@ test.exit: br i1 false, label %19, label %13 ;