
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. (cherry picked from commit 5eb25d1561dd22316331feee92164f97ca79d1c3)
8 lines
386 B
C
8 lines
386 B
C
/* { dg-do link { target { offload_target_amdgcn } } } */
|
|
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
|
/* { dg-additional-options -foffload=-march=gfx1103 } */
|
|
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
|
|
|
#include "declare-variant-4.h"
|
|
|
|
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1103 \\(\\);" "optimized" } } */
|