Hi! On 2022-02-24T11:32:53+0100, Tom de Vries via Gcc-patches wrote: > --- /dev/null > +++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm30.c > @@ -0,0 +1,7 @@ > +/* { dg-do run { target { offload_target_nvptx } } } */ This means, the test case is active if nvptx offloading compilation is enabled. But, consider the case that GCN offloading compilation also is enabled: | +/* { dg-additional-options -foffload=nvptx-none } */ > +/* { dg-additional-options "-foffload=-misa=sm_30" } */ This means, the test cases is restricted to nvptx offloading compilation, but not GCN. > +/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */ This will thus produce a dump file for nvptx, only. No dump file produced for GCN. > +[...] > +/* { dg-final { scan-offload-tree-dump "= f30 \\(\\);" "optimized" } } */ ..., and this will try to scan dump files for both GCN and nvptx. The former doesn't exist, resulting in UNRESOLVEDs for GCN. Etc. I've pushed to master branch commit 186e22c5de8eb49603bb1e74ac5d0eba6cc40480 "In 'libgomp.c/declare-variant-{3,4}-*.c', restrict 'scan-offload-tree-dump's to 'only_for_offload_target [...]'", see attached. Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955