Spin 'dg-do run' part of 'libgomp.c/declare-variant-3-sm30.c' off into new 'libgomp...
commit95e6e32a85566a5510d21938d439e90e504e0ddc
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 21 Nov 2023 18:03:47 +0000 (21 19:03 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 30 Nov 2023 14:42:57 +0000 (30 15:42 +0100)
tree3d4e5cef07cfd9b501e31ddc2799c20a648b6362
parent186e22c5de8eb49603bb1e74ac5d0eba6cc40480
Spin 'dg-do run' part of 'libgomp.c/declare-variant-3-sm30.c' off into new 'libgomp.c/declare-variant-3.c'

Having nvptx offloading configured doesn't imply being able to run nvptx
offloading test cases on the test host.

Also, make 'libgomp.c/declare-variant-3.c' work for all non-offloading and
offloading cases.

Fix-up for commit 59b8ade88774b4dcf1691a8f650cdbb86cc30862
"[libgomp, testsuite, nvptx] Add libgomp.c/declare-variant-3-sm*.c".

libgomp/
* testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
into 'dg-do link'.
* testsuite/libgomp.c/declare-variant-3.c: New.
* testsuite/libgomp.c/declare-variant-3.h: Extend.
libgomp/testsuite/libgomp.c/declare-variant-3-sm30.c
libgomp/testsuite/libgomp.c/declare-variant-3.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-3.h