Skip to content

Commit 2fe98b9

Browse files
committed
Adjust tests based on rebase and a silly mistake when porting test into offload folder
1 parent 8f001cb commit 2fe98b9

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

flang/test/Lower/OpenMP/common-block-map.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
22

3-
!CHECK: fir.global common @var_common_(dense<0> : vector<8xi8>) : !fir.array<8xi8>
4-
!CHECK: fir.global common @var_common_link_(dense<0> : vector<8xi8>) {omp.declare_target = #omp.declaretarget<device_type = (any), capture_clause = (link)>} : !fir.array<8xi8>
3+
!CHECK: fir.global common @var_common_(dense<0> : vector<8xi8>) {{.*}} : !fir.array<8xi8>
4+
!CHECK: fir.global common @var_common_link_(dense<0> : vector<8xi8>) {{{.*}} omp.declare_target = #omp.declaretarget<device_type = (any), capture_clause = (link)>} : !fir.array<8xi8>
55

66
!CHECK-LABEL: func.func @_QPmap_full_block
77
!CHECK: %[[CB_ADDR:.*]] = fir.address_of(@var_common_) : !fir.ref<!fir.array<8xi8>>

offload/test/offloading/fortran/target-map-declare-target-link-common-block.f90

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,11 @@ program main
2424
!$omp end target
2525

2626
call modify_2
27+
call modify_3
2728

2829
print *, var1
2930
print *, var2
3031
print *, var3
31-
32-
call modify_3
33-
34-
if (var1 /= 20) then
35-
print*, "======= FORTRAN Test Failed! ======="
36-
stop 1
37-
end if
38-
39-
if (var2 /= 100) then
40-
print*, "======= FORTRAN Test Failed! ======="
41-
stop 1
42-
end if
43-
44-
if (var3 /= 60) then
45-
print*, "======= FORTRAN Test Failed! ======="
46-
stop 1
47-
end if
48-
49-
print*, "======= FORTRAN Test Passed! ======="
5032
end program
5133

5234
subroutine modify_1
@@ -71,11 +53,6 @@ subroutine modify_2
7153
!$omp end target
7254

7355
print *, copy
74-
75-
if (copy /= 80) then
76-
print*, "======= FORTRAN Test Failed! ======="
77-
stop 1
78-
end if
7956
end
8057

8158
subroutine modify_3

0 commit comments

Comments
 (0)