Fix failure in gfortran.dg/gomp/combined-if.f90 test
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 26 Jun 2020 17:35:36 +0000 (10:35 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 26 Jun 2020 18:22:45 +0000 (11:22 -0700)
commit0fce12c0920c12492c878c0ca5f639f93b93f183
tree0f38b1d17b0ca226b231f257ab8f15f5ae08a02d
parentb3d77404c060c0d65d8d4c97254995737d0fc032
Fix failure in gfortran.dg/gomp/combined-if.f90 test

Enabling nvptx offloading results in extra '#pragma omp simd' statements
in the tree dump with an extra '_simt_'.

2020-06-26  Kwok Cheung Yeung  <kcy@codesourcery.com>

gcc/testsuite/
* gfortran.dg/gomp/combined-if.f90: Adjust expected number
of matches depending on whether nvptx offloading is supported.
* lib/target-supports.exp
(check_effective_target_offload_nvptx): New.
gcc/testsuite/gfortran.dg/gomp/combined-if.f90
gcc/testsuite/lib/target-supports.exp