diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-05-22 22:22:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-05-22 22:22:35 +0000 |
| commit | 713d52364fedc7680dc2f5358fd2ed8f661136a8 (patch) | |
| tree | d5106c9b2613c1611f1bc920da2046eeb773595c /llvm/test/Transforms | |
| parent | 3bdc7679ce7bf7c6a62b37ec431f3490df732c90 (diff) | |
| download | bcm5719-llvm-713d52364fedc7680dc2f5358fd2ed8f661136a8.tar.gz bcm5719-llvm-713d52364fedc7680dc2f5358fd2ed8f661136a8.zip | |
implement PR9315, constant folding exp2 in terms of pow (since hosts without
C99 runtimes don't have exp2).
llvm-svn: 131872
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/ConstProp/calls.ll | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/test/Transforms/ConstProp/calls.ll b/llvm/test/Transforms/ConstProp/calls.ll index 82d73245ad1..3b6010a0dc3 100644 --- a/llvm/test/Transforms/ConstProp/calls.ll +++ b/llvm/test/Transforms/ConstProp/calls.ll @@ -7,6 +7,7 @@ declare double @sin(double) declare double @tan(double) declare double @sqrt(double) +declare double @exp2(double) define double @T() { ; CHECK: @T @@ -19,7 +20,11 @@ define double @T() { %b = fadd double %a, %C %D = call double @sqrt(double 4.000000e+00) %c = fadd double %b, %D - ret double %c + + ; PR9315 + %E = call double @exp2(double 4.0) + %d = fadd double %c, %E + ret double %d } define i1 @test_sse_cvt() nounwind readnone { |

