]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Simplify target test and dg-options for AMO tests
authorJeevitha <jeevitha@linux.ibm.com>
Wed, 8 Jan 2025 07:03:12 +0000 (01:03 -0600)
committerJeevitha <jeevitha@linux.ibm.com>
Wed, 8 Jan 2025 07:03:12 +0000 (01:03 -0600)
Removed powerpc*-*-* from the target test as it is always true. Simplified
options by removing -mpower9-misc and -mvsx, which are enabled by default with
-mdejagnu-cpu=power9. The has_arch_pwr9 check is also true with
-mdejagnu-cpu=power9, so it has been removed.

2025-01-08 Jeevitha Palanisamy <jeevitha@linux.ibm.com>

gcc/testsuite/

* gcc.target/powerpc/amo1.c: Removed powerpc*-*-* from the target and
simplified dg-options.
* gcc.target/powerpc/amo2.c: Simplified dg-options and added powerpc_vsx
target check.

gcc/testsuite/gcc.target/powerpc/amo1.c
gcc/testsuite/gcc.target/powerpc/amo2.c

index c5af373b4e9914e0b7eabe9afda70bd92b5cacdd..9a981cd4219f70528dc19dec8cefa4881fddbb40 100644 (file)
@@ -1,6 +1,5 @@
-/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
-/* { dg-options "-mvsx -mpower9-misc -O2" } */
-/* { dg-additional-options "-mdejagnu-cpu=power9" { target { ! has_arch_pwr9 } } } */
+/* { dg-do compile { target { lp64 } } } */
+/* { dg-options "-mdejagnu-cpu=power9 -O2" } */
 /* { dg-require-effective-target powerpc_vsx } */
 
 /* Verify P9 atomic memory operations.  */
index 592f0fb3f92ddaa8f4997b922cffaf3356b604cd..9e4ff0ce0645941b6b8efe582d40a7c12de0a2a5 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run { target { powerpc*-*-linux* && { lp64 && p9vector_hw } } } } */
-/* { dg-options "-O2 -mvsx -mpower9-misc" } */
-/* { dg-additional-options "-mdejagnu-cpu=power9" { target { ! has_arch_pwr9 } } } */
+/* { dg-options "-mdejagnu-cpu=power9 -O2" } */
+/* { dg-require-effective-target powerpc_vsx } */
 
 #include <amo.h>
 #include <stdint.h>