[llvm-commits] [llvm] r135064 - /llvm/trunk/test/Transforms/InstCombine/sqrt.ll

Evan Cheng evan.cheng at apple.com
Wed Jul 13 12:19:44 PDT 2011


Author: evancheng
Date: Wed Jul 13 14:19:44 2011
New Revision: 135064

URL: http://llvm.org/viewvc/llvm-project?rev=135064&view=rev
Log:
Change test case, one that actually failed before my commit.

Modified:
    llvm/trunk/test/Transforms/InstCombine/sqrt.ll

Modified: llvm/trunk/test/Transforms/InstCombine/sqrt.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/sqrt.ll?rev=135064&r1=135063&r2=135064&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/sqrt.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/sqrt.ll Wed Jul 13 14:19:44 2011
@@ -38,7 +38,12 @@
 ; CHECK: sqrt(
 ; CHECK-NOT: sqrtf(
 ; CHECK: fptrunc
-  %call34 = call double @sqrt(double undef) nounwind readnone
+  %arrayidx13 = getelementptr inbounds float* %v, i64 2
+  %tmp14 = load float* %arrayidx13
+  %mul18 = fmul float %tmp14, %tmp14
+  %add19 = fadd float undef, %mul18
+  %conv = fpext float %add19 to double
+  %call34 = call double @sqrt(double %conv) readnone
   %call36 = call i32 (double)* @foo(double %call34) nounwind
   %conv38 = fptrunc double %call34 to float
   ret float %conv38





More information about the llvm-commits mailing list