OpenMP: Constructors and destructors for "declare target" static aggregates: Fix effective-target keyword in test cases
(Most of) the tests added in commit f1bfba3a9b
"OpenMP: Constructors and destructors for "declare target" static aggregates"
had a mismatch between dump file production and its scanning; the former needs
to use 'offload_target_nvptx' (like 'offload_target_amdgcn'), not
'offload_device_nvptx'.
libgomp/
* testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C:
Fix effective-target keyword.
* testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C:
Likewise.
* testsuite/libgomp.c-c++-common/target-is-initial-host-2.c:
Likewise.
* testsuite/libgomp.c-c++-common/target-is-initial-host.c:
Likewise.
* testsuite/libgomp.fortran/target-is-initial-host-2.f90:
Likewise.
* testsuite/libgomp.fortran/target-is-initial-host.f: Likewise.
* testsuite/libgomp.fortran/target-is-initial-host.f90: Likewise.
This commit is contained in:
parent
a90c74ab16
commit
9f5d22e3e2
7 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
// { dg-do run }
|
||||
// { dg-additional-options "-fdump-tree-gimple -fdump-tree-optimized" }
|
||||
// { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_device_nvptx || offload_target_amdgcn } } }
|
||||
// { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_target_nvptx || offload_target_amdgcn } } }
|
||||
|
||||
// { dg-final { scan-tree-dump-times "omp_is_initial_device" 1 "gimple" } }
|
||||
// { dg-final { scan-tree-dump-times "_GLOBAL__off_I_v1" 1 "gimple" } }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// { dg-do run }
|
||||
// { dg-additional-options "-fdump-tree-gimple -fdump-tree-optimized" }
|
||||
// { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_device_nvptx || offload_target_amdgcn } } }
|
||||
// { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_target_nvptx || offload_target_amdgcn } } }
|
||||
|
||||
// { dg-final { scan-tree-dump-times "omp_is_initial_device" 1 "gimple" } }
|
||||
// { dg-final { scan-tree-dump-times "_GLOBAL__off_I_v1" 1 "gimple" } }
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* Check whether 'omp_is_initial_device()' is NOT compile-time optimized. */
|
||||
|
||||
/* { dg-additional-options "-fdump-tree-gimple -fdump-tree-optimized" } */
|
||||
/* { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_device_nvptx || offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_target_nvptx || offload_target_amdgcn } } } */
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "omp_is_initial_device" 1 "gimple" } } */
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/* Check whether 'omp_is_initial_device()' is properly compile-time optimized. */
|
||||
|
||||
/* { dg-additional-options "-fdump-tree-gimple -fdump-tree-optimized" } */
|
||||
/* { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_device_nvptx || offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_target_nvptx || offload_target_amdgcn } } } */
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "omp_is_initial_device" 1 "gimple" } } */
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
! Check whether 'omp_is_initial_device()' is NOT compile-time optimized. */
|
||||
|
||||
! { dg-additional-options "-fdump-tree-gimple -fdump-tree-optimized" }
|
||||
! { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_device_nvptx || offload_target_amdgcn } } }
|
||||
! { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_target_nvptx || offload_target_amdgcn } } }
|
||||
|
||||
! { dg-final { scan-tree-dump-times "omp_is_initial_device" 1 "gimple" } }
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
! Check whether 'omp_is_initial_device()' is properly compile-time optimized. */
|
||||
|
||||
! { dg-additional-options "-fdump-tree-gimple -fdump-tree-optimized" }
|
||||
! { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_device_nvptx || offload_target_amdgcn } } }
|
||||
! { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_target_nvptx || offload_target_amdgcn } } }
|
||||
|
||||
! { dg-final { scan-tree-dump-times "omp_is_initial_device" 1 "gimple" } }
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
! Check whether 'omp_is_initial_device()' is properly compile-time optimized. */
|
||||
|
||||
! { dg-additional-options "-fdump-tree-gimple -fdump-tree-optimized" }
|
||||
! { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_device_nvptx || offload_target_amdgcn } } }
|
||||
! { dg-additional-options -foffload-options=-fdump-tree-optimized { target { offload_target_nvptx || offload_target_amdgcn } } }
|
||||
|
||||
! { dg-final { scan-tree-dump-times "omp_is_initial_device" 1 "gimple" } }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue