]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, rs6000: Make powerpc_vsx consider current_compiler_flags [PR114842]
authorKewen Lin <linkw@linux.ibm.com>
Tue, 21 May 2024 02:01:08 +0000 (21:01 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Tue, 21 May 2024 02:01:08 +0000 (21:01 -0500)
As noted in PR114842, most of the test cases which require
effective target check powerpc_vsx_ok actually care about
if VSX feature is enabled, and they should adopt effective
target powerpc_vsx instead.  By considering we already have
a number of test cases having explicit -mvsx in dg-options
etc., to keep them still be tested as before even without
vsx enabled by default, this patch is to make powerpc_vsx
consider current_compiler_flags.

PR testsuite/114842

gcc/testsuite/ChangeLog:

* lib/target-supports.exp (check_effective_target_powerpc_vsx): Take
current_compiler_flags into account.

gcc/testsuite/lib/target-supports.exp

index cf5512074ad575a883db3cec3e399b3f1126fc95..8689c11214d4df8a62b7e2e4a5bc0f55893ee2a8 100644 (file)
@@ -7140,7 +7140,7 @@ proc check_effective_target_powerpc_vsx { } {
          nope no vsx
        #endif
        }
-    }]
+    } [current_compiler_flags]]
 }
 
 # Return 1 if this is a PowerPC target supporting -mvsx