public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8399] Fix vect_long_mult for aarch64 [PR109705]
@ 2024-01-24 18:22 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2024-01-24 18:22 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e6fbc3cc786a74a098352868348e187877bfbc8b

commit r14-8399-ge6fbc3cc786a74a098352868348e187877bfbc8b
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date:   Wed Jan 24 00:00:34 2024 -0800

    Fix vect_long_mult for aarch64 [PR109705]
    
    On aarch64, vectorization of `long` multiply can be done if SVE is enabled
    or if long is 32bit (ILP32). It can also be done for constants too but there
    is no effective target test for that just yet.
    
    Build and tested on aarch64-linux-gnu with no regressions (also tested with SVE enabled).
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/109705
            * lib/target-supports.exp (check_effective_target_vect_long_mult):
            Fix aarch64*-*-* checks.
    
    Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>

Diff:
---
 gcc/testsuite/lib/target-supports.exp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 73360cd3a0d..82520119026 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9090,7 +9090,9 @@ proc check_effective_target_vect_long_mult { } {
 	      && [check_effective_target_has_arch_pwr10])
 	 || [is-effective-target arm_neon]
 	 || ([istarget sparc*-*-*] && [check_effective_target_ilp32])
-	 || [istarget aarch64*-*-*]
+	 || ([istarget aarch64*-*-*]
+	     && ([check_effective_target_ilp32]
+		 || check_effective_target_aarch64_sve]))
 	 || ([istarget mips*-*-*]
 	      && [et-is-effective-target mips_msa])
 	 || ([istarget riscv*-*-*]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-24 18:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-24 18:22 [gcc r14-8399] Fix vect_long_mult for aarch64 [PR109705] Andrew Pinski

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).