public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8485] testsuite: Fix vect_long_mult for 32-bit Power [PR109705]
@ 2024-01-29 2:36 Kewen Lin
0 siblings, 0 replies; only message in thread
From: Kewen Lin @ 2024-01-29 2:36 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5b393ac7f1715328ee92236071edc3885bf53317
commit r14-8485-g5b393ac7f1715328ee92236071edc3885bf53317
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date: Sun Jan 28 20:35:05 2024 -0600
testsuite: Fix vect_long_mult for 32-bit Power [PR109705]
As PR109705#c17, commit r14-7270 missed to consider long
type is 32bit with option -m32. This patch is take care of
it accordingly.
Note that the vect_long_mult is supposed to be only used in
vect/ (generic), powerpc_altivec_ok would be guaranteed.
PR testsuite/109705
gcc/testsuite/ChangeLog:
* lib/target-supports.exp (check_effective_target_vect_long_mult):
Fix powerpc*-*-* checks by considering ilp32.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diff:
---
gcc/testsuite/lib/target-supports.exp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 6705f6e5d25a..994e83fc9e95 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9086,8 +9086,9 @@ proc check_effective_target_vect_int_mult { } {
proc check_effective_target_vect_long_mult { } {
if { [istarget i?86-*-*] || [istarget x86_64-*-*]
|| ([istarget powerpc*-*-*]
- && [check_effective_target_powerpc_vsx_ok]
- && [check_effective_target_has_arch_pwr10])
+ && ([check_effective_target_ilp32]
+ || ([check_effective_target_powerpc_vsx_ok]
+ && [check_effective_target_has_arch_pwr10])))
|| [is-effective-target arm_neon]
|| ([istarget sparc*-*-*] && [check_effective_target_ilp32])
|| ([istarget aarch64*-*-*]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-29 2:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-29 2:36 [gcc r14-8485] testsuite: Fix vect_long_mult for 32-bit Power [PR109705] Kewen Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).