Michael Kuperstein | 4bb3f8f | 2013-08-19 06:55:47 +0000 | [diff] [blame] | 1 | ; Test that the pow won't get simplified to sqrt(fabs) when they are not available. |
| 2 | ; |
| 3 | ; RUN: opt < %s -disable-simplify-libcalls -instcombine -S | FileCheck %s |
| 4 | |
| 5 | declare double @llvm.pow.f64(double %Val, double %Power) |
| 6 | |
| 7 | define double @test_simplify_unavailable(double %x) { |
| 8 | ; CHECK-LABEL: @test_simplify_unavailable( |
| 9 | %retval = call double @llvm.pow.f64(double %x, double 0.5) |
| 10 | ; CHECK-NEXT: call double @llvm.pow.f64(double %x, double 5.000000e-01) |
| 11 | ret double %retval |
| 12 | } |