From dcb9e1b387e4ceecf1a52ef0f7173f25dc5f9ca8 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Thu, 16 Nov 2017 17:01:09 +0000 Subject: [PATCH] [InstCombine] regenerate test checks; NFC llvm-svn: 318420 --- llvm/test/Transforms/InstCombine/pow-sqrt.ll | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/llvm/test/Transforms/InstCombine/pow-sqrt.ll b/llvm/test/Transforms/InstCombine/pow-sqrt.ll index 82db192ed801..e1ad82746a80 100644 --- a/llvm/test/Transforms/InstCombine/pow-sqrt.ll +++ b/llvm/test/Transforms/InstCombine/pow-sqrt.ll @@ -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 } -- GitLab