Skip to content

Commit 3005886

Browse files
authored
[flang][OpenMP] Fix some typo-like things in test case (#168582)
1 parent f4ebee0 commit 3005886

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

flang/test/Semantics/OpenMP/loop-transformation-construct01.f90

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ subroutine loop_transformation_construct1
1313
subroutine loop_transformation_construct2
1414
implicit none
1515
integer :: i = 5
16-
integer :: y
16+
integer :: x
1717
integer :: v(i)
1818

1919
!$omp do
2020
!$omp tile
2121
do x = 1, i
22-
v(x) = x(x) * 2
22+
v(x) = v(x) * 2
2323
end do
2424
!$omp end tile
2525
!$omp end do
@@ -30,26 +30,26 @@ subroutine loop_transformation_construct2
3030
subroutine loop_transformation_construct2
3131
implicit none
3232
integer :: i = 5
33-
integer :: y
33+
integer :: x
3434
integer :: v(i)
3535

3636
!$omp do
3737
!ERROR: Only Loop Transformation Constructs or Loop Nests can be nested within Loop Constructs
3838
!$omp parallel do
3939
do x = 1, i
40-
v(x) = x(x) * 2
40+
v(x) = v(x) * 2
4141
end do
4242
end subroutine
4343

4444
subroutine loop_transformation_construct3
4545
implicit none
4646
integer :: i = 5
47-
integer :: y
47+
integer :: x
4848
integer :: v(i)
4949

5050
!$omp do
5151
do x = 1, i
52-
v(x) = x(x) * 2
52+
v(x) = v(x) * 2
5353
end do
5454
!ERROR: A DO loop must follow the TILE directive
5555
!$omp tile
@@ -58,43 +58,43 @@ subroutine loop_transformation_construct3
5858
subroutine loop_transformation_construct4
5959
implicit none
6060
integer :: i = 5
61-
integer :: y
61+
integer :: x
6262
integer :: v(i)
6363

6464
!$omp do
6565
!ERROR: If a loop construct has been fully unrolled, it cannot then be further transformed
6666
!$omp tile
6767
!$omp unroll full
6868
do x = 1, i
69-
v(x) = x(x) * 2
69+
v(x) = v(x) * 2
7070
end do
7171
end subroutine
7272

7373
subroutine loop_transformation_construct5
7474
implicit none
7575
integer :: i = 5
76-
integer :: y
76+
integer :: x
7777
integer :: v(i)
7878

7979
!$omp do
8080
!ERROR: If a loop construct has been fully unrolled, it cannot then be further transformed
8181
!$omp tile
8282
!$omp unroll
8383
do x = 1, i
84-
v(x) = x(x) * 2
84+
v(x) = v(x) * 2
8585
end do
8686
end subroutine
8787

8888
subroutine loop_transformation_construct6
8989
implicit none
9090
integer :: i = 5
91-
integer :: y
91+
integer :: x
9292
integer :: v(i)
9393

9494
!$omp do
9595
!$omp tile
9696
!$omp unroll partial(2)
9797
do x = 1, i
98-
v(x) = x(x) * 2
98+
v(x) = v(x) * 2
9999
end do
100100
end subroutine

0 commit comments

Comments
 (0)