In 'libgomp.c/declare-variant-{3,4}-*.c', restrict 'scan-offload-tree-dump's to 'only_for_offload_target [...]'

... to care for the case where not just one but both of GCN and nvptx
offloading are enabled.  In that case, we currently get:

    UNRESOLVED: libgomp.c/declare-variant-3-sm30.c scan-amdgcn-amdhsa-offload-tree-dump optimized "= f30 \\(\\);"

... in addition to:

    PASS: libgomp.c/declare-variant-3-sm30.c scan-nvptx-none-offload-tree-dump optimized "= f30 \\(\\);"

Etc.

Fix-up for commit 59b8ade887
"[libgomp, testsuite, nvptx] Add libgomp.c/declare-variant-3-sm*.c",
and commit 1fd508744e
"amdgcn: Support AMD-specific 'isa' traits in OpenMP context selectors".

	libgomp/
	* testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
	'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
	* testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
	* testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
	* testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
	* testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
	* testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
	* testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
	'scan-offload-tree-dump' to
	'only_for_offload_target amdgcn-amdhsa'.
	* testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
	* testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
	* testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
	* testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
	* testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
This commit is contained in:
Thomas Schwinge 2023-11-21 17:31:37 +01:00
parent 3f5a3b7539
commit 186e22c5de
12 changed files with 12 additions and 12 deletions

View file

@ -5,4 +5,4 @@
#include "declare-variant-3.h"
/* { dg-final { scan-offload-tree-dump "= f30 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target nvptx-none scan-offload-tree-dump "= f30 \\(\\);" "optimized" } } */

View file

@ -5,4 +5,4 @@
#include "declare-variant-3.h"
/* { dg-final { scan-offload-tree-dump "= f35 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target nvptx-none scan-offload-tree-dump "= f35 \\(\\);" "optimized" } } */

View file

@ -5,4 +5,4 @@
#include "declare-variant-3.h"
/* { dg-final { scan-offload-tree-dump "= f53 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target nvptx-none scan-offload-tree-dump "= f53 \\(\\);" "optimized" } } */

View file

@ -5,4 +5,4 @@
#include "declare-variant-3.h"
/* { dg-final { scan-offload-tree-dump "= f70 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target nvptx-none scan-offload-tree-dump "= f70 \\(\\);" "optimized" } } */

View file

@ -5,4 +5,4 @@
#include "declare-variant-3.h"
/* { dg-final { scan-offload-tree-dump "= f75 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target nvptx-none scan-offload-tree-dump "= f75 \\(\\);" "optimized" } } */

View file

@ -5,4 +5,4 @@
#include "declare-variant-3.h"
/* { dg-final { scan-offload-tree-dump "= f80 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target nvptx-none scan-offload-tree-dump "= f80 \\(\\);" "optimized" } } */

View file

@ -5,4 +5,4 @@
#define USE_FIJI_FOR_GFX803
#include "declare-variant-4.h"
/* { dg-final { scan-offload-tree-dump "= gfx803 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx803 \\(\\);" "optimized" } } */

View file

@ -4,4 +4,4 @@
#include "declare-variant-4.h"
/* { dg-final { scan-offload-tree-dump "= gfx803 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx803 \\(\\);" "optimized" } } */

View file

@ -4,4 +4,4 @@
#include "declare-variant-4.h"
/* { dg-final { scan-offload-tree-dump "= gfx900 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx900 \\(\\);" "optimized" } } */

View file

@ -4,4 +4,4 @@
#include "declare-variant-4.h"
/* { dg-final { scan-offload-tree-dump "= gfx906 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx906 \\(\\);" "optimized" } } */

View file

@ -4,4 +4,4 @@
#include "declare-variant-4.h"
/* { dg-final { scan-offload-tree-dump "= gfx908 \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx908 \\(\\);" "optimized" } } */

View file

@ -4,4 +4,4 @@
#include "declare-variant-4.h"
/* { dg-final { scan-offload-tree-dump "= gfx90a \\(\\);" "optimized" } } */
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx90a \\(\\);" "optimized" } } */