[libgomp, testsuite, nvptx] Add libgomp.c/declare-variant-3-sm*.c
authorTom de Vries <tdevries@suse.de>
Thu, 24 Feb 2022 10:26:27 +0000 (11:26 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 24 Feb 2022 10:41:03 +0000 (11:41 +0100)
commit59b8ade88774b4dcf1691a8f650cdbb86cc30862
tree3f4080ebd41ffe9883329374e2acace2a37a4b2d
parenta046033ea0ba97314265933bc48124574db2d62a
[libgomp, testsuite, nvptx] Add libgomp.c/declare-variant-3-sm*.c

Add openmp test-cases that test the omp declare variant construct:
...
  #pragma omp declare variant (f30) match (device={isa("sm_30")})
...
using the available nvptx isas.

Only the one for sm_30 is a dg-do run test-case, the other ones are dg-do
link.

Tested on x86_64 with nvptx accelerator.

libgomp/ChangeLog:

2022-02-24  Tom de Vries  <tdevries@suse.de>

* testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
* testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
* testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
* testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
* testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
* testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
* testsuite/libgomp.c/declare-variant-3.h: New header file.
libgomp/testsuite/libgomp.c/declare-variant-3-sm30.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-3-sm35.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-3-sm53.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-3-sm70.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-3-sm75.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-3-sm80.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-3.h [new file with mode: 0644]