[llvm] r318420 - [InstCombine] regenerate test checks; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 09:01:09 PST 2017
Author: spatel
Date: Thu Nov 16 09:01:09 2017
New Revision: 318420
URL: http://llvm.org/viewvc/llvm-project?rev=318420&view=rev
Log:
[InstCombine] regenerate test checks; NFC
Modified:
llvm/trunk/test/Transforms/InstCombine/pow-sqrt.ll
Modified: llvm/trunk/test/Transforms/InstCombine/pow-sqrt.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/pow-sqrt.ll?rev=318420&r1=318419&r2=318420&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/pow-sqrt.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/pow-sqrt.ll Thu Nov 16 09:01:09 2017
@@ -1,24 +1,24 @@
; RUN: opt < %s -instcombine -S | FileCheck %s
define double @pow_half(double %x) {
+; CHECK-LABEL: @pow_half(
+; CHECK-NEXT: [[SQRT:%.*]] = call fast double @sqrt(double %x) #1
+; CHECK-NEXT: ret double [[SQRT]]
+;
%pow = call fast double @llvm.pow.f64(double %x, double 5.000000e-01)
ret double %pow
}
-; CHECK-LABEL: define double @pow_half(
-; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) #1
-; CHECK-NEXT: ret double %sqrt
-
define double @pow_neghalf(double %x) {
+; CHECK-LABEL: @pow_neghalf(
+; 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]]
+;
%pow = call fast double @llvm.pow.f64(double %x, double -5.000000e-01)
ret double %pow
}
-; CHECK-LABEL: define double @pow_neghalf(
-; 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) #0
attributes #0 = { nounwind readnone speculatable }
More information about the llvm-commits
mailing list