Hi! On 2022-11-14T21:46:15-0700, Sandra Loosemore via Gcc-patches wrote: > [...] I've added infrastructure to support testing on the offload > compiler, added new test cases, and reworked the existing test cases to > scan for interesting things written to the dump file instead of > examining the .s output. Thanks! (..., belatedly. I think it was me who suggested that.) Just one minor fix-up: > --- /dev/null > +++ b/libgomp/testsuite/libgomp.c/target-simd-clone-1.c > @@ -0,0 +1,43 @@ > +/* { dg-do link { target { offload_target_amdgcn } } } */ This means, the test case is active if GCN offloading compilation is enabled. But, consider the case that nvptx offloading compilation also is enabled: > +/* { dg-additional-options "-O2 -foffload-options=-fdump-ipa-simdclone-details" } */ This will produced dump files for both, GCN and nvptx, separately. However, this isn't applicable for nvptx, thus no dump file produced for that. > +[...] > +/* { dg-final { scan-offload-ipa-dump "Generated local clone _ZGV.*N.*_addit" "simdclone" } } */ > +/* { dg-final { scan-offload-ipa-dump "Generated local clone _ZGV.*M.*_addit" "simdclone" } } */ ..., and this will try to scan dump files for both GCN and nvptx. The latter don't exist, resulting in UNRESOLVEDs for nvptx. I've pushed to master branch commit 4c909c6ee381a43081d68abc1ff8a35ce20d24d9 "In 'libgomp.c/target-simd-clone-{1,2,3}.c', restrict 'scan-offload-ipa-dump's to 'only_for_offload_target amdgcn-amdhsa'", see attached. (This obviously depends on "testsuite: Add 'only_for_offload_target' wrapper for 'scan-offload-tree-dump' etc.", which I've also just pushed to master branch in commit 27c79b91f6008a21006d4e7053a98e63f2990bb2.) Grüße Thomas > --- /dev/null > +++ b/libgomp/testsuite/libgomp.c/target-simd-clone-2.c > @@ -0,0 +1,39 @@ > +/* { dg-do link { target { offload_target_amdgcn } } } */ > +/* { dg-additional-options "-foffload-options=-fdump-ipa-simdclone-details -foffload-options=-fno-openmp-target-simd-clone" } */ > +[...] > +/* { dg-final { scan-offload-ipa-dump-not "Generated .* clone" "simdclone" } } */ > --- /dev/null > +++ b/libgomp/testsuite/libgomp.c/target-simd-clone-3.c > @@ -0,0 +1,40 @@ > +/* { dg-do link { target { offload_target_amdgcn } } } */ > +/* { dg-additional-options "-O2 -foffload-options=-fdump-ipa-simdclone-details" } */ > +[...] > +/* { dg-final { scan-offload-ipa-dump "device doesn't match" "simdclone" { target x86_64-*-* } } } */ > +/* { dg-final { scan-offload-ipa-dump-not "Generated .* clone" "simdclone" { target x86_64-*-* } } } */ ----------------- 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