File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
flang/test/Semantics/OpenMP Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ subroutine loop_transformation_construct1
1313subroutine 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
3030subroutine 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
4242end subroutine
4343
4444subroutine 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
5858subroutine 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
7171end subroutine
7272
7373subroutine 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
8686end subroutine
8787
8888subroutine 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
100100end subroutine
You can’t perform that action at this time.
0 commit comments