Hi! On Wed, 11 Nov 2015 08:59:17 -0500, Nathan Sidwell wrote: > On 11/11/15 07:06, Bernd Schmidt wrote: > > On 11/10/2015 11:33 PM, Nathan Sidwell wrote: > >> I've been unable to introduce a testcase for this. (But you still committed an update to gcc/testsuite/ChangeLog.) You'll need to put such an offloading test into the libgomp testsuite -- offloading complation requires linking, and during that, the offloading compiler(s) will be invoked, which only the libgomp testsuite is set up to do, as discussed before. > >> The difficulty is we > >> want to check an rtl dump from the acceleration compiler, and there > >> doesn't appear to be existing machinery for that in the testsuite. > >> Perhaps something to be added later? > > > > What's the difficulty exactly? Getting a dump should be possible with > > -foffload=-fdump-whatever, does the testsuite have a problem finding the right > > filename? Currently, this will create cc* files, for example ccdjj2z9.o.271r.final for -foffload=-fdump-rtl-final. (I don't know if you can come up with dg-* directives to scan these.) The reason is -- I think -- because of the lto-wrapper and/or mkoffloads not specifying a more suitable "base name" for the temporary input files to lto1. > That's not the problem. How to conditionally enable the test is the difficulty. > I suspect porting something concerning accel_compiler from the libgomp > testsuite is needed? Use "{ target openacc_nvidia_accel_selected }", as implemented by libgomp/testsuite/lib/libgomp.exp:check_effective_target_openacc_nvidia_accel_selected (already present on trunk). Grüße Thomas