[testsuite] Replace fragile 'scan-assembler' with 'scan-offload-rtl' in 'libgomp...
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 30 Jun 2020 03:24:17 +0000 (05:24 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 30 Jun 2020 15:48:36 +0000 (17:48 +0200)
commit8a8efad09811b5c08cfd9d469c6f1b6ba0c848f1
tree517b43024cb75a1a159c5f20fc179f9099da3c36
parentaff43ac0aed5185884724adbdfd4dbbabd87637c
[testsuite] Replace fragile 'scan-assembler' with 'scan-offload-rtl' in 'libgomp.oacc-c-c++-common/pr85381*.c'

These test cases use directives similar to:

    /* { dg-additional-options "-save-temps" } */

    /* { dg-final { scan-assembler-times "bar.sync" 2 } } */

This expects to scan the PTX offloading compilation assembler code (not host
code!), expecting that nvptx offloading code assembly is produced after the
host code, and thus overwrites the latter file.  (Yes, that's certainly
ugly/fragile...)

..., and this broke with recent commit 1dedc12d186a110854537e1279b4e6c29f2df35a
"revamp dump and aux output names" plus fix-up commit commit
efc16503ca10bc0e934e0bace5777500e4dc757a "handle dumpbase in offloading, adjust
testsuite" (short summary: file names changed), so let's finally make that
robust.

libgomp/
* testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
'scan-assembler' with 'scan-offload-rtl'.
* testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-2.c
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-3.c
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-4.c
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-5.c
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381.c