Skip to content

Commit bfeebda

Browse files
authored
[flang][OpenMP] Re-enable tests when building OpenMP as a runtime (#89046)
1 parent 195ba45 commit bfeebda

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+78
-64
lines changed

flang/test/Driver/include-omp-header.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
! This should just work
1111
! RUN: not rm omp_lib.h
12-
! RUN: %flang -cpp -fsyntax-only -fopenmp %s 2>&1
12+
! RUN: %flang -cpp -fsyntax-only %openmp_flags %s 2>&1
1313

1414
! Create an empty omp_lib.h header that _does not_ define omp_default_mem_alloc - this should lead to semantic errors
1515
! RUN: touch omp_lib.h
16-
! RUN: not %flang -cpp -fsyntax-only -fopenmp %s 2>&1 | FileCheck %s
16+
! RUN: not %flang -cpp -fsyntax-only %openmp_flags %s 2>&1 | FileCheck %s
1717
! RUN: rm omp_lib.h
1818

1919
! CHECK: error: Must have INTEGER type, but is REAL(4)

flang/test/Lower/OpenMP/atomic-capture.f90

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
! This test checks the lowering of atomic capture
44

5-
! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
6-
! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
7-
5+
! RUN: bbc %openmp_flags -emit-hlfir %s -o - | FileCheck %s
6+
! RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
87

98

109
program OmpAtomicCapture

flang/test/Lower/OpenMP/atomic-read.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
3+
! RUN: bbc %openmp_flags -emit-hlfir %s -o - | FileCheck %s
44

55
! This test checks the lowering of atomic read
66

flang/test/Lower/OpenMP/atomic-update.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
! REQUIRES: openmp_runtime
22

33
! This test checks lowering of atomic and atomic update constructs
4-
! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
5-
! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
4+
! RUN: bbc %openmp_flags -emit-hlfir %s -o - | FileCheck %s
5+
! RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
66

77
program OmpAtomicUpdate
88
use omp_lib

flang/test/Lower/OpenMP/atomic-write.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
3+
! RUN: bbc %openmp_flags -emit-hlfir %s -o - | FileCheck %s
44

55
! This test checks the lowering of atomic write
66

flang/test/Lower/OpenMP/critical.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
3+
!RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
44

55
!CHECK: omp.critical.declare @help2
66
!CHECK: omp.critical.declare @help1 hint(contended)

flang/test/Lower/OpenMP/omp-lib-num-threads.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - 2>&1 | FileCheck %s
4-
! RUN: bbc -fopenmp -emit-hlfir -o - %s 2>&1 | FileCheck %s
5-
! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - 2>&1 | FileCheck %s
6-
! RUN: bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
3+
! RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - 2>&1 | FileCheck %s
4+
! RUN: bbc %openmp_flags -emit-hlfir -o - %s 2>&1 | FileCheck %s
5+
! RUN: %flang_fc1 -emit-fir %openmp_flags %s -o - 2>&1 | FileCheck %s
6+
! RUN: bbc -emit-fir %openmp_flags -o - %s 2>&1 | FileCheck %s
77
!
88
! Test that the calls to omp_lib's omp_get_num_threads and omp_set_num_threads
99
! get lowered even though their implementation is not in the omp_lib module

flang/test/Lower/OpenMP/parallel-sections.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
3+
!RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
44

55
!===============================================================================
66
! Parallel sections construct

flang/test/Lower/OpenMP/parallel.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
3+
!RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
44

55
!CHECK-LABEL: func @_QPparallel_simple
66
subroutine parallel_simple()

flang/test/Lower/OpenMP/sections.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
! This test checks the lowering of OpenMP sections construct with several clauses present
44

5-
! RUN: %flang_fc1 -flang-experimental-hlfir -emit-hlfir -fopenmp %s -o - | FileCheck %s
6-
! RUN: bbc -hlfir -emit-hlfir -fopenmp %s -o - | FileCheck %s
5+
! RUN: %flang_fc1 -flang-experimental-hlfir -emit-hlfir %openmp_flags %s -o - | FileCheck %s
6+
! RUN: bbc -hlfir -emit-hlfir %openmp_flags %s -o - | FileCheck %s
77

88
!CHECK: func @_QQmain() attributes {fir.bindc_name = "sample"} {
99
!CHECK: %[[COUNT:.*]] = fir.address_of(@_QFEcount) : !fir.ref<i32>

flang/test/Lower/OpenMP/single.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
! REQUIRES: openmp_runtime
22

3-
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
4-
!RUN: bbc -emit-hlfir -fopenmp %s -o - | FileCheck %s
3+
!RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
4+
!RUN: bbc -emit-hlfir %openmp_flags %s -o - | FileCheck %s
55

66
!===============================================================================
77
! Single construct

flang/test/Lower/OpenMP/task.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
3+
!RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
44

55
!CHECK-LABEL: func @_QPomp_task_simple() {
66
subroutine omp_task_simple

flang/test/Lower/OpenMP/taskgroup.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
1+
! REQUIRES: openmp_runtime
2+
3+
!RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
24

35
! The "allocate" clause has been removed, because it needs to be used
46
! together with a privatizing clause. The only such clause for "taskgroup"

flang/test/Lower/OpenMP/teams.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | FileCheck %s
3+
! RUN: %flang_fc1 -emit-hlfir %openmp_flags -fopenmp-version=52 %s -o - | FileCheck %s
44

55
! CHECK-LABEL: func @_QPteams_simple
66
subroutine teams_simple()

flang/test/Lower/OpenMP/threadprivate-default-clause.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
! Simple test for lowering of OpenMP Threadprivate Directive with HLFIR.
44

5-
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
5+
!RUN: %flang_fc1 -emit-hlfir %openmp_flags %s -o - | FileCheck %s
66

77
!CHECK-LABEL: func.func @_QPsub1() {
88
!CHECK: %[[A:.*]] = fir.address_of(@_QFsub1Ea) : !fir.ref<i32>

flang/test/Parser/OpenMP/allocate-tree-spec-part.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %flang_fc1 -fopenmp -fdebug-dump-parse-tree %s | FileCheck %s
3+
! RUN: %flang_fc1 %openmp_flags -fdebug-dump-parse-tree %s | FileCheck %s
44
! Ensures associated declarative OMP allocations in the specification
55
! part are kept there
66

flang/test/Parser/OpenMP/allocate-tree.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %flang_fc1 -fopenmp -fdebug-dump-parse-tree %s | FileCheck %s
4-
! RUN: %flang_fc1 -fopenmp -fdebug-unparse %s | FileCheck %s --check-prefix="UNPARSE"
3+
! RUN: %flang_fc1 %openmp_flags -fdebug-dump-parse-tree %s | FileCheck %s
4+
! RUN: %flang_fc1 %openmp_flags -fdebug-unparse %s | FileCheck %s --check-prefix="UNPARSE"
55
! Ensures associated declarative OMP allocations are nested in their
66
! corresponding executable allocate directive
77

flang/test/Parser/OpenMP/target_device_parse.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %flang_fc1 -fdebug-unparse-no-sema -fopenmp %s | FileCheck --ignore-case %s
4-
! RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp %s | FileCheck --check-prefix="PARSE-TREE" %s
3+
! RUN: %flang_fc1 -fdebug-unparse-no-sema %openmp_flags %s | FileCheck --ignore-case %s
4+
! RUN: %flang_fc1 -fdebug-dump-parse-tree %openmp_flags %s | FileCheck --check-prefix="PARSE-TREE" %s
55
! Checks the parsing of Openmp 5.0 Target Device constructs
66
!
77
PROGRAM main

flang/test/Semantics/OpenMP/allocate-clause01.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.2
55
! The allocate clause's allocator modifier must be of type allocator_handle
66
! and the align modifier must be constant, positive integer expression

flang/test/Semantics/OpenMP/allocate-directive.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! Check OpenMP Allocate directive
55
use omp_lib
66

flang/test/Semantics/OpenMP/allocate01.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! The allocate directive must appear in the same scope as the declarations of

flang/test/Semantics/OpenMP/allocate02.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! At most one allocator clause can appear on the allocate directive.

flang/test/Semantics/OpenMP/allocate03.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! A variable that is part of another variable (as an array or

flang/test/Semantics/OpenMP/allocate04.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! Only the allocator clause is allowed on the allocate directive

flang/test/Semantics/OpenMP/allocate05.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! allocate directives that appear in a target region must specify an allocator

flang/test/Semantics/OpenMP/allocate06.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! List items specified in the allocate directive must not have the ALLOCATABLE attribute unless the directive is associated with an

flang/test/Semantics/OpenMP/allocate07.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! A type parameter inquiry cannot appear in an allocate directive.

flang/test/Semantics/OpenMP/allocate08.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! If list items within the ALLOCATE directive have the SAVE attribute, are a common block name, or are declared in the scope of a

flang/test/Semantics/OpenMP/allocate09.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.0
55
! 2.11.3 allocate Directive
66
! List items specified in an allocate directive that is associated

flang/test/Semantics/OpenMP/allocators01.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.2
55
! 6.7 allocators construct
66
! A list item that appears in an allocate clause must appear as

flang/test/Semantics/OpenMP/allocators02.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.2
55
! 6.7 allocators construct
66
! A variable that is part of another variable (as an array or

flang/test/Semantics/OpenMP/allocators03.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.2
55
! 6.7 allocators construct
66
! Only the allocate clause is allowed on the allocators construct

flang/test/Semantics/OpenMP/allocators04.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.2
55
! Inherited from 2.11.3 allocate Directive
66
! If list items within the ALLOCATE directive have the SAVE attribute, are a common block name, or are declared in the scope of a

flang/test/Semantics/OpenMP/allocators05.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.2
55
! Inherited from 2.11.3 allocate directive
66
! allocate directives that appear in a target region must specify an

flang/test/Semantics/OpenMP/allocators06.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.2
55
! Inherited from 2.11.3 allocate directive
66
! The allocate directive must appear in the same scope as the declarations of

flang/test/Semantics/OpenMP/atomic-hint-clause.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! Semantic checks on hint clauses, as they appear on atomic constructs
55

66
program sample

flang/test/Semantics/OpenMP/atomic01.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! Semantic checks for OpenMP 5.0 standard 2.17.7 atomic Construct.
55

66
use omp_lib

flang/test/Semantics/OpenMP/atomic02.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44

55
! OpenMP Atomic construct
66
! section 2.17.7

flang/test/Semantics/OpenMP/atomic03.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44

55
! OpenMP Atomic construct
66
! section 2.17.7

flang/test/Semantics/OpenMP/atomic04.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44

55
! OpenMP Atomic construct
66
! section 2.17.7

flang/test/Semantics/OpenMP/atomic05.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang %openmp_flags
44

55
! This tests the various semantics related to the clauses of various OpenMP atomic constructs
66

flang/test/Semantics/OpenMP/clause-validity01.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags %openmp_module_flag
44
use omp_lib
55
! Check OpenMP clause validity for the following directives:
66
!

flang/test/Semantics/OpenMP/critical-hint-clause.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! Semantic checks on hint clauses, as they appear on critical construct
55

66
program sample

flang/test/Semantics/OpenMP/declare-target01.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! OpenMP Version 5.1
55
! Check OpenMP construct validity for the following directives:
66
! 2.14.7 Declare Target Directive

flang/test/Semantics/OpenMP/flush02.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44

55
! Check OpenMP 5.0 - 2.17.8 flush Construct
66
! Restriction -

flang/test/Semantics/OpenMP/omp-atomic-assignment-stmt.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3+
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
44
! Semantic checks for various assignments related to atomic constructs
55

66
program sample

0 commit comments

Comments
 (0)