diff options
| author | Chad Rosier <mcrosier@apple.com> | 2011-12-03 00:00:03 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2011-12-03 00:00:03 +0000 |
| commit | 0155a63513277d2acdd62a76aa8461bae7778232 (patch) | |
| tree | 39ba6138aeab4df70c67f008056b20fb81e1b136 /llvm/test/Transforms | |
| parent | 7f3884d58a1a90831a9946b7b8693cd4334611af (diff) | |
| download | bcm5719-llvm-0155a63513277d2acdd62a76aa8461bae7778232.tar.gz bcm5719-llvm-0155a63513277d2acdd62a76aa8461bae7778232.zip | |
Add support for constant folding the pow intrinsic.
rdar://10514247
llvm-svn: 145730
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/ConstProp/calls.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Transforms/ConstProp/calls.ll b/llvm/test/Transforms/ConstProp/calls.ll index b3ea122406c..7a405a539c5 100644 --- a/llvm/test/Transforms/ConstProp/calls.ll +++ b/llvm/test/Transforms/ConstProp/calls.ll @@ -61,6 +61,15 @@ declare i32 @llvm.x86.sse2.cvttsd2si(<2 x double>) nounwind readnone declare i64 @llvm.x86.sse2.cvtsd2si64(<2 x double>) nounwind readnone declare i64 @llvm.x86.sse2.cvttsd2si64(<2 x double>) nounwind readnone +define double @test_intrinsic_pow() nounwind uwtable ssp { +entry: +; CHECK: @test_intrinsic_pow +; CHECK-NOT: call + %0 = call double @llvm.pow.f64(double 1.500000e+00, double 3.000000e+00) + ret double %0 +} +declare double @llvm.pow.f64(double, double) nounwind readonly + ; Shouldn't fold because of -fno-builtin define double @sin_() nounwind uwtable ssp { ; FNOBUILTIN: @sin_ |

