testsuite, rs6000: Make powerpc_altivec consider current_compiler_flags [PR114842]
commit3bb8cdbd60cdb4dab45b97235dc045d65555b0a1
authorKewen Lin <linkw@linux.ibm.com>
Tue, 21 May 2024 02:01:08 +0000 (20 21:01 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Tue, 21 May 2024 02:01:08 +0000 (20 21:01 -0500)
tree7fc9fe2ffd1c16d8e79b0f2ae4fc93ac565da020
parent95080f2a40c5dfc098b75029c30380ecf03875dc
testsuite, rs6000: Make powerpc_altivec consider current_compiler_flags [PR114842]

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