rs6000: Update rlwinm-[012].c
diff mbox series

Message ID 865b554a161d8db8a273eb51e154ae17449f4ecd.1568051111.git.segher@kernel.crashing.org
State New
Headers show
Series
  • rs6000: Update rlwinm-[012].c
Related show

Commit Message

Segher Boessenkool Sept. 9, 2019, 5:49 p.m. UTC
I never got around to updating these testcases after the combine hardreg
changes (and more).  This patch does not fix all failures, just the simple
ones that are obvious improvements.  The rest need more work.

Committing to trunk.


Segher


2019-09-09  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/testsuite/
	* gcc.target/powerpc/rlwinm-0.c: Adjust expected instruction counts.
	* gcc.target/powerpc/rlwinm-1.c: Ditto.
	* gcc.target/powerpc/rlwinm-2.c: Ditto.

---
 gcc/testsuite/gcc.target/powerpc/rlwinm-0.c | 8 ++++----
 gcc/testsuite/gcc.target/powerpc/rlwinm-1.c | 8 ++++----
 gcc/testsuite/gcc.target/powerpc/rlwinm-2.c | 8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)

Patch
diff mbox series

diff --git a/gcc/testsuite/gcc.target/powerpc/rlwinm-0.c b/gcc/testsuite/gcc.target/powerpc/rlwinm-0.c
index 2940b62..4f4fca2 100644
--- a/gcc/testsuite/gcc.target/powerpc/rlwinm-0.c
+++ b/gcc/testsuite/gcc.target/powerpc/rlwinm-0.c
@@ -2,15 +2,15 @@ 
 /* { dg-options "-O2" } */
 
 /* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 6739 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 9730 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 9716 { target lp64 } } } */
 /* { dg-final { scan-assembler-times {(?n)^\s+blr} 3375 } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+rldicl} 3095 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+rldicl} 3081 { target lp64 } } } */
 
 /* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 3197 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 3094 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 3093 { target lp64 } } } */
 /* { dg-final { scan-assembler-times {(?n)^\s+rotlwi} 154 } } */
 /* { dg-final { scan-assembler-times {(?n)^\s+srwi} 13 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+srdi} 12 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+srdi} 13 { target lp64 } } } */
 
 
 #define SL
diff --git a/gcc/testsuite/gcc.target/powerpc/rlwinm-1.c b/gcc/testsuite/gcc.target/powerpc/rlwinm-1.c
index 0fc08a6..4dfbd2e 100644
--- a/gcc/testsuite/gcc.target/powerpc/rlwinm-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/rlwinm-1.c
@@ -2,14 +2,14 @@ 
 /* { dg-options "-O2" } */
 
 /* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 6739 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 9606 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 9496 { target lp64 } } } */
 /* { dg-final { scan-assembler-times {(?n)^\s+blr} 3375 } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+rldic} 2946 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+rldic} 2847 { target lp64 } } } */
 
 /* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 691 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 622 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 612 { target lp64 } } } */
 /* { dg-final { scan-assembler-times {(?n)^\s+slwi} 11 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+slwi} 1 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+slwi} 0 { target lp64 } } } */
 
 /* { dg-final { scan-assembler-times {(?n)^\s+mulli} 2662 { target ilp32 } } } */
 
diff --git a/gcc/testsuite/gcc.target/powerpc/rlwinm-2.c b/gcc/testsuite/gcc.target/powerpc/rlwinm-2.c
index 4087ac0..bddcfe2 100644
--- a/gcc/testsuite/gcc.target/powerpc/rlwinm-2.c
+++ b/gcc/testsuite/gcc.target/powerpc/rlwinm-2.c
@@ -2,14 +2,14 @@ 
 /* { dg-options "-O2" } */
 
 /* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 6739 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 9466 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+[a-z]} 9352 { target lp64 } } } */
 /* { dg-final { scan-assembler-times {(?n)^\s+blr} 3375 } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+rldic} 2840 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+rldic} 2726 { target lp64 } } } */
 
 /* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 833 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 721 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+rlwinm} 720 { target lp64 } } } */
 /* { dg-final { scan-assembler-times {(?n)^\s+srwi} 13 { target ilp32 } } } */
-/* { dg-final { scan-assembler-times {(?n)^\s+srdi} 12 { target lp64 } } } */
+/* { dg-final { scan-assembler-times {(?n)^\s+srdi} 13 { target lp64 } } } */
 
 /* { dg-final { scan-assembler-times {(?n)^\s+mulli} 2518 } } */