[LibCallSimplifier] use instruction-level fast-math-flags to transform pow(x, 0.5...
[oota-llvm.git] / test / Transforms / InstCombine / pow-sqrt.ll
1 ; RUN: opt < %s -instcombine -S | FileCheck %s
2
3 define double @pow_half(double %x) {
4   %pow = call fast double @llvm.pow.f64(double %x, double 5.000000e-01)
5   ret double %pow
6 }
7
8 ; CHECK-LABEL: define double @pow_half(
9 ; CHECK-NEXT:  %sqrt = call fast double @sqrt(double %x)
10 ; CHECK-NEXT:  ret double %sqrt
11
12 declare double @llvm.pow.f64(double, double)
13