]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, rs6000: Make powerpc_altivec 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_altivec_ok actually care
about if ALTIVEC feature is enabled, and they should adopt
effective target powerpc_altivec instead.  By considering
we already have a number of test cases having explicit
-maltivec in dg-options etc., to keep them still be tested
as before even without altivec enabled by default, this
patch makes powerpc_altivec consider current_compiler_flags
like what we do for powerpc_vsx.

PR testsuite/114842

gcc/testsuite/ChangeLog:

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

gcc/testsuite/lib/target-supports.exp

index 8689c11214d4df8a62b7e2e4a5bc0f55893ee2a8..3f0f8532dc3656d5dc5b7085436e19c19f4d2760 100644 (file)
@@ -7323,7 +7323,7 @@ proc check_effective_target_sparc_vis { } {
            #else
            int dummy;
            #endif
-       }]
+       } [current_compiler_flags]]
     } else {
        return 0
     }