testsuite: Add offloading_enabled check and use it for xfail (PR95622)
authorTobias Burnus <tobias@codesourcery.com>
Tue, 16 Jun 2020 13:14:13 +0000 (15:14 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 16 Jun 2020 13:14:13 +0000 (15:14 +0200)
commite70fbee1a3dd9fdeb661366dbf3096d76c4e2d6e
tree5f466348f99a46fb2ae74c9f7ea8545492c660bb
parent6a893783f972a2c5d53186dfa15e0a7b8f1b2990
testsuite: Add offloading_enabled check and use it for xfail (PR95622)

gcc/testsuite/ChangeLog:

PR middle-end/95622
* lib/target-supports.exp (check_effective_target_offloading_enabled):
New.
* c-c++-common/goacc/kernels-alias-ipa-pta-2.c: Use it for xfail.
* c-c++-common/goacc/kernels-alias-ipa-pta-4.c: Likewise.
* c-c++-common/goacc/kernels-alias-ipa-pta.c: Likewise.

Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
gcc/testsuite/c-c++-common/goacc/kernels-alias-ipa-pta-2.c
gcc/testsuite/c-c++-common/goacc/kernels-alias-ipa-pta-4.c
gcc/testsuite/c-c++-common/goacc/kernels-alias-ipa-pta.c
gcc/testsuite/lib/target-supports.exp