[PATCH] [OG10] Xfail libgomp.oacc-fortran/privatized-ref-2.f90 when offloading to nvptx

Kwok Cheung Yeung kcy@codesourcery.com
Wed Sep 16 17:34:37 GMT 2020


Hello

I have committed this patch to xfail libgomp.oacc-fortran/privatized-ref-2.f90 
when the offload target is nvptx, as the generated code has some alloca calls 
which are currently not supported by nvptx (PR65181).

Kwok

-------------- next part --------------
commit 1245f6f615fa08d2ab4165598c9db72c4dad4467
Author: Kwok Cheung Yeung <kcy@codesourcery.com>
Date:   Wed Sep 16 10:19:35 2020 -0700

    XFAIL libgomp.oacc-fortran/privatized-ref-2.f90 on nvptx
    
    The testcase uses alloca, which is not currently supported on nvptx
    (see PR65181).
    
    2020-09-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
    
    	libgomp/
    	* testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: XFAIL on nvptx.

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 6e313aa..890a4e2 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,5 +1,9 @@
 2020-09-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
+	* testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: XFAIL on nvptx.
+
+2020-09-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
 	* testsuite/libgomp.oacc-c++/privatized-ref-2.C (workers, vectors):
 	Reduce number of workers to 16.
 	* testsuite/libgomp.oacc-c++/privatized-ref-3.C (workers, vectors):
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90 b/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90
index ca8fbe8..658ab9e 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90
@@ -1,4 +1,5 @@
 ! { dg-do run }
+! { dg-xfail-if "no alloca support" { offload_target_nvptx } }
 
 program main
   implicit none (type, external)


More information about the Gcc-patches mailing list