summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Love <cel@us.ibm.com>2023-03-28 12:57:25 -0400
committerCarl Love <cel@us.ibm.com>2023-05-16 11:25:50 -0400
commit66d9ac083ccf957b88da98328cb7d4b2960e2fea (patch)
tree05905d46ef7ef80d8a1b2a058586587734b4d38f
parentcf4dcfa6727b89362494bd49e2a28ebd10d767ce (diff)
downloadgcc-66d9ac083ccf957b88da98328cb7d4b2960e2fea.tar.gz
rs6000: Fix test gc.target/powerpc/rs600-fpint.c test options
The test compile option rs6000-*-* is outdated and no longer supported. The powerpc*-*-* is the defualt, so it doesn't need to be specified. The dg-options needs to specify an older processor to get the desired behavior on recent processors, since gfxopt is only off for very old CPUs, we don't guard stfiwx under it for recent processors and don't want to. This patch updates the test specifications so the test will run properly on Power10LE. Tested on Power10 LE system with no regression test failures. gcc/testsuite/: * gcc.target/powerpc/rs6000-fpint.c: Update dg-options, drop dg-do compile specifier.
-rw-r--r--gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c b/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
index 410f780de8b..fdb0a371929 100644
--- a/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
+++ b/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
@@ -1,5 +1,4 @@
-/* { dg-do compile { target powerpc*-*-* rs6000-*-* } } */
-/* { dg-options "-mno-powerpc-gfxopt" } */
+/* { dg-options "-mno-powerpc-gfxopt -mdejagnu-cpu=power6" } */
/* { dg-final { scan-assembler-not "stfiwx" } } */
/* A basic test of the old-style (not stfiwx) fp -> int conversion. */