[gcc/devel/omp/gcc-10] Fix loop-dim-default.c testcase for AMD GCN

Kwok Yeung kcy@gcc.gnu.org
Tue Jun 9 22:40:53 GMT 2020


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

commit af05cb35896178c8e78cc3f32e28f5e2100bddee
Author: Kwok Cheung Yeung <kcy@codesourcery.com>
Date:   Thu May 21 13:43:13 2020 -0700

    Fix loop-dim-default.c testcase for AMD GCN
    
    2020-05-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
    
            libgomp/
            * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (check):
            Change ACC_DEVICE_TYPE_gcn to ACC_DEVICE_TYPE_radeon.

Diff:
---
 libgomp/ChangeLog.omp                                          | 5 +++++
 libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 01544e90709..1b285b0265a 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,3 +1,8 @@
+2020-05-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+	* testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (check):
+	Change ACC_DEVICE_TYPE_gcn to ACC_DEVICE_TYPE_radeon.
+
 2020-03-24  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
 	* testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: XFAIL
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
index e3114c23919..ddf0a29d304 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
@@ -79,7 +79,7 @@ int check (const int *ary, int size, int gp, int wp, int vp)
 	exit = 1;
       }
   
-#ifndef ACC_DEVICE_TYPE_gcn
+#ifndef ACC_DEVICE_TYPE_radeon
   /* AMD GCN uses the autovectorizer for the vector dimension: the use
      of a function call in vector-partitioned code in this test is not
      currently supported.  */


More information about the Gcc-cvs mailing list