]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp: Add gfx90c, 1036 and 1103 declare variant tests
authorJakub Jelinek <jakub@redhat.com>
Thu, 2 May 2024 09:56:16 +0000 (11:56 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 2 May 2024 09:56:16 +0000 (11:56 +0200)
commit5eb25d1561dd22316331feee92164f97ca79d1c3
tree5b79979cab1909c7944c9b4288739954e2c413dc
parent2f15787f2e1a3afe2c2ad93d4eb0d3c1f73c8fbd
libgomp: Add gfx90c, 1036 and 1103 declare variant tests

Recently -march=gfx{90c,1036,1103} support has been added, but corresponding
changes weren't done in the testsuite.

The following patch adds that.

Tested on x86_64-linux (with fiji and gfx1103 devices; had to use
OMP_DEFAULT_DEVICE=1 there, fiji doesn't really work due to LLVM dropping
support, but we still list those as offloading devices).

2024-05-02  Jakub Jelinek  <jakub@redhat.com>

* testsuite/libgomp.c/declare-variant-4.h (gfx90c, gfx1036, gfx1103):
New functions.
(f): Add #pragma omp declare variant directives for those.
* testsuite/libgomp.c/declare-variant-4-gfx90c.c: New test.
* testsuite/libgomp.c/declare-variant-4-gfx1036.c: New test.
* testsuite/libgomp.c/declare-variant-4-gfx1103.c: New test.
libgomp/testsuite/libgomp.c/declare-variant-4-gfx1036.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-4-gfx1103.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-4-gfx90c.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/declare-variant-4.h