diff mbox series

[1/2] testsuite, rs6000: Make powerpc_vsx consider current_compiler_flags [PR114842]

Message ID a9ea4e99-8e05-99e5-1aee-df3c90565f54@linux.ibm.com
State New
Headers show
Series [1/2] testsuite, rs6000: Make powerpc_vsx consider current_compiler_flags [PR114842] | expand

Commit Message

Kewen.Lin May 8, 2024, 6:44 a.m. UTC
Hi,

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.

Regtested on powerpc64-linux-gnu P8/P9 and
powerpc64le-linux-gnu P9 and P10.

I'm going to push this soon if no objections.

BR,
Kewen
-----

	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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.39.1
diff mbox series

Patch

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 969456281c7..713898d5554 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -7144,7 +7144,7 @@  proc check_effective_target_powerpc_vsx { } {
 	  nope no vsx
 	#endif
 	}
-    }]
+    } [current_compiler_flags]]
 }

 # Return 1 if this is a PowerPC target supporting -mvsx