public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work055)] PR 100170: Fix eq/ne tests on power10.
@ 2021-06-09 4:36 Michael Meissner
0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2021-06-09 4:36 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:99aef549541b9f4070e306ef82c6c5a64a1d7799
commit 99aef549541b9f4070e306ef82c6c5a64a1d7799
Author: Michael Meissner <meissner@linux.ibm.com>
Date: Wed Jun 9 00:36:02 2021 -0400
PR 100170: Fix eq/ne tests on power10.
This patch updates the various tests in the testsuite to adjust the test
if power10 code generation is used.
gcc/testsuite/
2021-06-09 Michael Meissner <meissner@linux.ibm.com>
PR testsuite/100170
* gcc.target/powerpc/ppc-eq0-1.c: Add support for the setbc
instruction.
* gcc.target/powerpc/ppc-ne0-1.c: Update instruction counts on
power10.
Diff:
---
gcc/testsuite/gcc.target/powerpc/ppc-eq0-1.c | 2 +-
gcc/testsuite/gcc.target/powerpc/ppc-ne0-1.c | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-eq0-1.c b/gcc/testsuite/gcc.target/powerpc/ppc-eq0-1.c
index 496a6e340c0..bbdc7e00101 100644
--- a/gcc/testsuite/gcc.target/powerpc/ppc-eq0-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/ppc-eq0-1.c
@@ -7,4 +7,4 @@ int foo(int x)
return x == 0;
}
-/* { dg-final { scan-assembler "cntlzw|isel" } } */
+/* { dg-final { scan-assembler {\mcntlzw|isel|setbc\M} } } */
diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-ne0-1.c b/gcc/testsuite/gcc.target/powerpc/ppc-ne0-1.c
index 63c4b6087df..34c6de3874d 100644
--- a/gcc/testsuite/gcc.target/powerpc/ppc-ne0-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/ppc-ne0-1.c
@@ -2,9 +2,12 @@
/* { dg-do compile } */
/* { dg-options "-O2 -mno-isel" } */
-/* { dg-final { scan-assembler-times "addic" 4 } } */
-/* { dg-final { scan-assembler-times "subfe" 1 } } */
-/* { dg-final { scan-assembler-times "addze" 3 } } */
+/* { dg-final { scan-assembler-times {\maddic\M} 4 { target { ! has_arch_pwr10 } } } } */
+/* { dg-final { scan-assembler-times {\msubfe\M} 1 { target { ! has_arch_pwr10 } } } } */
+/* { dg-final { scan-assembler-times {\maddic\M} 3 { target { has_arch_pwr10 } } } } */
+/* { dg-final { scan-assembler-not {\msubfe\M} { target { has_arch_pwr10 } } } } */
+/* { dg-final { scan-assembler-times {\msetbcr\M} 1 { target { has_arch_pwr10 } } } } */
+/* { dg-final { scan-assembler-times {\maddze\M} 3 } } */
long ne0(long a)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-09 4:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 4:36 [gcc(refs/users/meissner/heads/work055)] PR 100170: Fix eq/ne tests on power10 Michael Meissner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).