diff options
Diffstat (limited to 'llvm/test/Transforms/InstCombine/pow-sqrt.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/pow-sqrt.ll | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/pow-sqrt.ll b/llvm/test/Transforms/InstCombine/pow-sqrt.ll index 52175f1b124..82db192ed80 100644 --- a/llvm/test/Transforms/InstCombine/pow-sqrt.ll +++ b/llvm/test/Transforms/InstCombine/pow-sqrt.ll @@ -6,7 +6,7 @@ define double @pow_half(double %x) { } ; CHECK-LABEL: define double @pow_half( -; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) +; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) #1 ; CHECK-NEXT: ret double %sqrt define double @pow_neghalf(double %x) { @@ -15,8 +15,11 @@ define double @pow_neghalf(double %x) { } ; CHECK-LABEL: define double @pow_neghalf( -; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) #0 +; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) #1 ; CHECK-NEXT: %sqrtrecip = fdiv fast double 1.000000e+00, %sqrt ; CHECK-NEXT: ret double %sqrtrecip -declare double @llvm.pow.f64(double, double) +declare double @llvm.pow.f64(double, double) #0 + +attributes #0 = { nounwind readnone speculatable } +attributes #1 = { nounwind readnone } |