Hi All,

The amdgcn-amdhsa test seems to be running for all targets unconditionally while
only really makes sense for certain targets.  This patch adds an opt-out list
and opts out arm targets.

Regtested on aarch64-none-linux-gnu and no issues.

Ok for master?

Thanks,
Tamar

gcc/testsuite/ChangeLog:

        * lib/target-supports.exp (check_effective_target_offload_gcn): Skip for
        arm targets.

-- 
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index b335108358d0c878193ce07771b69933f3ec4d26..b4da4ddf86063288abd353569c4dc7c75ce326f0 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9787,6 +9787,10 @@ proc check_effective_target_offload_hsa { } {
 # Return 1 if the compiler has been configured with hsa offloading.
 
 proc check_effective_target_offload_gcn { } {
+    if { [istarget aarch64*-*-*] || [istarget arm*-*-*] } {
+	return 0
+    }
+
     return [check_no_compiler_messages offload_gcn assembly {
 	int main () {return 0;}
     } "-foffload=amdgcn-amdhsa" ]

Reply via email to