From c4ef4e47c2fada06a8ca9a1d1378afaa24e61dab Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Mon, 22 Sep 2014 22:46:44 +0000 Subject: tighten up checks We manage to generate all of the matching instructions (and a lot more) via the reciprocal optimization function - even if we completely remove the square root optimization. With CHECK_NEXT, we assure that we're executing the expected square root optimization paths and not generating extra insts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218284 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PowerPC/recipest.ll | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/CodeGen/PowerPC/recipest.ll') diff --git a/test/CodeGen/PowerPC/recipest.ll b/test/CodeGen/PowerPC/recipest.ll index 28034420adf..8111b544366 100644 --- a/test/CodeGen/PowerPC/recipest.ll +++ b/test/CodeGen/PowerPC/recipest.ll @@ -40,10 +40,10 @@ define double @foof(double %a, float %b) nounwind { ; CHECK-DAG: frsqrtes ; CHECK-DAG: fnmsubs ; CHECK: fmuls -; CHECK: fmadds -; CHECK: fmuls -; CHECK: fmul -; CHECK: blr +; CHECK-NEXT: fmadds +; CHECK-NEXT: fmuls +; CHECK-NEXT: fmul +; CHECK-NEXT: blr ; CHECK-SAFE: @foof ; CHECK-SAFE: fsqrts @@ -61,14 +61,14 @@ define float @food(float %a, double %b) nounwind { ; CHECK-DAG: frsqrte ; CHECK-DAG: fnmsub ; CHECK: fmul -; CHECK: fmadd -; CHECK: fmul -; CHECK: fmul -; CHECK: fmadd -; CHECK: fmul -; CHECK: frsp -; CHECK: fmuls -; CHECK: blr +; CHECK-NEXT: fmadd +; CHECK-NEXT: fmul +; CHECK-NEXT: fmul +; CHECK-NEXT: fmadd +; CHECK-NEXT: fmul +; CHECK-NEXT: frsp +; CHECK-NEXT: fmuls +; CHECK-NEXT: blr ; CHECK-SAFE: @foo ; CHECK-SAFE: fsqrt -- cgit v1.2.3