diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-05-17 08:05:40 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-05-18 12:57:45 +0200 |
commit | 937fa5fb7840c19c96b1fdf1ce678699649a6c5e (patch) | |
tree | 083134939d2f453d7151a4b0a0a277a8dda2d11f | |
parent | abf937ac00e523576ca86957dfa9769281896ca5 (diff) | |
download | gcc-937fa5fb7840c19c96b1fdf1ce678699649a6c5e.zip gcc-937fa5fb7840c19c96b1fdf1ce678699649a6c5e.tar.gz gcc-937fa5fb7840c19c96b1fdf1ce678699649a6c5e.tar.bz2 |
'libgomp.c-c++-common/reduction-{5,6}.c': Restrict '-latomic' to nvptx offloading compilation
Fix-up for recent commit 33b647956caa977d1ae489f9baed9cef70b4f382
"OpenMP: Fix SIMT for complex/float reduction with && and ||"; see
commit d42088e453042f4f8ba9190a7e29efd937ea2181 "Avoid -latomic for amdgcn
offloading".
libgomp/
* testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
'-latomic' to nvptx offloading compilation.
* testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
-rw-r--r-- | libgomp/testsuite/libgomp.c-c++-common/reduction-5.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c-c++-common/reduction-6.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libgomp/testsuite/libgomp.c-c++-common/reduction-5.c b/libgomp/testsuite/libgomp.c-c++-common/reduction-5.c index 2154051..31fa267 100644 --- a/libgomp/testsuite/libgomp.c-c++-common/reduction-5.c +++ b/libgomp/testsuite/libgomp.c-c++-common/reduction-5.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-foffload=-latomic" { target { offload_target_nvptx } } } */ +/* { dg-additional-options "-foffload=nvptx-none=-latomic" { target { offload_target_nvptx } } } */ /* C / C++'s logical AND and OR operators take any scalar argument which compares (un)equal to 0 - the result 1 or 0 and of type int. diff --git a/libgomp/testsuite/libgomp.c-c++-common/reduction-6.c b/libgomp/testsuite/libgomp.c-c++-common/reduction-6.c index 27d9ef6..727e11e 100644 --- a/libgomp/testsuite/libgomp.c-c++-common/reduction-6.c +++ b/libgomp/testsuite/libgomp.c-c++-common/reduction-6.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-foffload=-latomic" { target { offload_target_nvptx } } } */ +/* { dg-additional-options "-foffload=nvptx-none=-latomic" { target { offload_target_nvptx } } } */ /* C / C++'s logical AND and OR operators take any scalar argument which compares (un)equal to 0 - the result 1 or 0 and of type int. |