summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/recipest.ll
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2014-09-22 22:46:44 +0000
committerSanjay Patel <spatel@rotateright.com>2014-09-22 22:46:44 +0000
commitc4ef4e47c2fada06a8ca9a1d1378afaa24e61dab (patch)
tree32d23f64f5285e04c5b8b015997f3b8d27eecf9c /test/CodeGen/PowerPC/recipest.ll
parentf1a19cd9fcf841039ccffa332954617a1186176d (diff)
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
Diffstat (limited to 'test/CodeGen/PowerPC/recipest.ll')
-rw-r--r--test/CodeGen/PowerPC/recipest.ll24
1 files changed, 12 insertions, 12 deletions
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