]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix vect_long_mult for 32-bit Power [PR109705]
authorAndrew Pinski <quic_apinski@quicinc.com>
Mon, 29 Jan 2024 02:35:05 +0000 (20:35 -0600)
committerKewen Lin <linkw@linux.ibm.com>
Mon, 29 Jan 2024 02:35:05 +0000 (20:35 -0600)
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>
gcc/testsuite/lib/target-supports.exp

index 6705f6e5d25a61be1fd06dc6d0962152b8ce332e..994e83fc9e95b121f062c3647c2ecf864f32ad0f 100644 (file)
@@ -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*-*-*]