diff mbox series

GCN: Enable effective-target 'vect_long_long'

Message ID 87wmoxjfne.fsf@euler.schwinge.ddns.net
State New
Headers show
Series GCN: Enable effective-target 'vect_long_long' | expand

Commit Message

Thomas Schwinge April 16, 2024, 7:01 p.m. UTC
Hi!

OK to push the attached "GCN: Enable effective-target 'vect_long_long'"?
(Or is that not what you'd expect to see for GCN?  I haven't checked the
actual back end code...)


Grüße
 Thomas

Comments

Andrew Stubbs April 17, 2024, 8:17 a.m. UTC | #1
On 16/04/2024 20:01, Thomas Schwinge wrote:
> Hi!
> 
> OK to push the attached "GCN: Enable effective-target 'vect_long_long'"?
> (Or is that not what you'd expect to see for GCN?  I haven't checked the
> actual back end code...)

I think if there are still missing int64 vector operations then they're 
exceptions, not the rule.

The patch looks good to me.

Andrew
diff mbox series

Patch

From d74cc9caadfe36652503782a8da172ae1975915c Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <tschwinge@baylibre.com>
Date: Tue, 16 Apr 2024 14:10:15 +0200
Subject: [PATCH] GCN: Enable effective-target 'vect_long_long'

... as made apparent by a number of unexpectedly UNSUPPORTED test cases, which
now all turn into PASS, with just one exception:

    PASS: gcc.dg/vect/vect-early-break_124-pr114403.c (test for excess errors)
    PASS: gcc.dg/vect/vect-early-break_124-pr114403.c execution test
    FAIL: gcc.dg/vect/vect-early-break_124-pr114403.c scan-tree-dump vect "LOOP VECTORIZED"

..., which needs to be looked into, separately.

	gcc/testsuite/
	* lib/target-supports.exp (check_effective_target_vect_long_long):
	Enable for GCN.
---
 gcc/testsuite/lib/target-supports.exp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 594837653bb..1a8459561c6 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -7692,7 +7692,8 @@  proc check_effective_target_vect_long_long { } {
 	     || ([istarget riscv*-*-*]
 		 && [check_effective_target_riscv_v])
 	     || ([istarget loongarch*-*-*]
-		 && [check_effective_target_loongarch_sx])}}]
+		 && [check_effective_target_loongarch_sx])
+	     || [istarget amdgcn-*-*] }}]
 }
 
 
-- 
2.34.1