diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-13 19:19:44 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-13 19:19:44 +0000 |
commit | 3fd6e755d0efa29eef06f9b07302daf92c391e5a (patch) | |
tree | 1e330d40594fc71f3e4dc121c90891b7732407ca | |
parent | 21101d60ce94f51651f71eeb61ceb8264eccac83 (diff) |
Change test case, one that actually failed before my commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135064 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/sqrt.ll | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/sqrt.ll b/test/Transforms/InstCombine/sqrt.ll index 6ee7a53ae7..cc78417ebb 100644 --- a/test/Transforms/InstCombine/sqrt.ll +++ b/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 |