summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-07-13 19:19:44 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-07-13 19:19:44 +0000
commit4a40a747ba7e188d02ac0760d62869e7bd01f735 (patch)
tree941e99b6bd39179d49d6a44719bd8e5e8878e3d9 /llvm/test/Transforms
parentc845e55374891eef70dc1ef40926d090262117c7 (diff)
downloadbcm5719-llvm-4a40a747ba7e188d02ac0760d62869e7bd01f735.tar.gz
bcm5719-llvm-4a40a747ba7e188d02ac0760d62869e7bd01f735.zip
Change test case, one that actually failed before my commit.
llvm-svn: 135064
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/InstCombine/sqrt.ll7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstCombine/sqrt.ll b/llvm/test/Transforms/InstCombine/sqrt.ll
index 6ee7a53ae7e..cc78417ebbd 100644
--- a/llvm/test/Transforms/InstCombine/sqrt.ll
+++ b/llvm/test/Transforms/InstCombine/sqrt.ll
@@ -38,7 +38,12 @@ entry:
; 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
OpenPOWER on IntegriCloud