diff options
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.fortran/reduction4.f90 | 56 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.fortran/reduction5.f90 | 10 |
3 files changed, 38 insertions, 33 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 547ce4eb4ad..85900470792 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org> + + * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage + * testsuite/libgomp.fortran/reduction5.f90: Ditto. + 2019-07-20 Jakub Jelinek <jakub@redhat.com> * testsuite/libgomp.c-c++-common/loop-1.c: New test. diff --git a/libgomp/testsuite/libgomp.fortran/reduction4.f90 b/libgomp/testsuite/libgomp.fortran/reduction4.f90 index 91c7fc89bf2..498d5460554 100644 --- a/libgomp/testsuite/libgomp.fortran/reduction4.f90 +++ b/libgomp/testsuite/libgomp.fortran/reduction4.f90 @@ -4,12 +4,12 @@ integer (kind = 4) :: i, ia (6), j, ja (6), k, ka (6), ta (6), n, cnt, x logical :: v - i = Z'ffff0f' - ia = Z'f0ff0f' - j = Z'0f0000' - ja = Z'0f5a00' - k = Z'055aa0' - ka = Z'05a5a5' + i = int(Z'ffff0f') + ia = int(Z'f0ff0f') + j = int(Z'0f0000') + ja = int(Z'0f5a00') + k = int(Z'055aa0') + ka = int(Z'05a5a5') v = .false. cnt = -1 x = not(0) @@ -22,35 +22,35 @@ n = omp_get_thread_num () if (n .eq. 0) then cnt = omp_get_num_threads () - i = Z'ff7fff' - ia(3:5) = Z'fffff1' - j = Z'078000' + i = int(Z'ff7fff') + ia(3:5) = int(Z'fffff1') + j = int(Z'078000') ja(1:3) = 1 - k = Z'78' - ka(3:6) = Z'f0f' + k = int(Z'78') + ka(3:6) = int(Z'f0f') else if (n .eq. 1) then - i = Z'ffff77' - ia(2:5) = Z'ffafff' - j = Z'007800' + i = int(Z'ffff77') + ia(2:5) = int(Z'ffafff') + j = int(Z'007800') ja(2:5) = 8 - k = Z'57' - ka(3:4) = Z'f0108' + k = int(Z'57') + ka(3:4) = int(Z'f0108') else - i = Z'777fff' - ia(1:2) = Z'fffff3' - j = Z'000780' - ja(5:6) = Z'f00' - k = Z'1000' - ka(6:6) = Z'777' + i = int(Z'777fff') + ia(1:2) = int(Z'fffff3') + j = int(Z'000780') + ja(5:6) = int(Z'f00') + k = int(Z'1000') + ka(6:6) = int(Z'777') end if !$omp end parallel if (v) STOP 1 if (cnt .eq. 3) then - ta = (/Z'f0ff03', Z'f0af03', Z'f0af01', Z'f0af01', Z'f0af01', Z'f0ff0f'/) - if (i .ne. Z'777f07' .or. any (ia .ne. ta)) STOP 2 - ta = (/Z'f5a01', Z'f5a09', Z'f5a09', Z'f5a08', Z'f5f08', Z'f5f00'/) - if (j .ne. Z'fff80' .or. any (ja .ne. ta)) STOP 3 - ta = (/Z'5a5a5', Z'5a5a5', Z'aaba2', Z'aaba2', Z'5aaaa', Z'5addd'/) - if (k .ne. Z'54a8f' .or. any (ka .ne. ta)) STOP 4 + ta = (/int(Z'f0ff03'), int(Z'f0af03'), int(Z'f0af01'), int(Z'f0af01'), int(Z'f0af01'), int(Z'f0ff0f')/) + if (i .ne. int(Z'777f07') .or. any (ia .ne. ta)) STOP 2 + ta = (/int(Z'f5a01'), int(Z'f5a09'), int(Z'f5a09'), int(Z'f5a08'), int(Z'f5f08'), int(Z'f5f00')/) + if (j .ne. int(Z'fff80') .or. any (ja .ne. ta)) STOP 3 + ta = (/int(Z'5a5a5'), int(Z'5a5a5'), int(Z'aaba2'), int(Z'aaba2'), int(Z'5aaaa'), int(Z'5addd')/) + if (k .ne. int(Z'54a8f') .or. any (ka .ne. ta)) STOP 4 end if end diff --git a/libgomp/testsuite/libgomp.fortran/reduction5.f90 b/libgomp/testsuite/libgomp.fortran/reduction5.f90 index f8fdcb471fe..a1d1a8e5425 100644 --- a/libgomp/testsuite/libgomp.fortran/reduction5.f90 +++ b/libgomp/testsuite/libgomp.fortran/reduction5.f90 @@ -10,15 +10,15 @@ contains subroutine test1 use reduction5, bitwise_or => ior integer :: n - n = Z'f' + n = int(Z'f') !$omp parallel sections num_threads (3) reduction (bitwise_or: n) - n = ior (n, Z'20') + n = ior (n, int(Z'20')) !$omp section - n = bitwise_or (Z'410', n) + n = bitwise_or (int(Z'410'), n) !$omp section - n = bitwise_or (n, Z'2000') + n = bitwise_or (n, int(Z'2000')) !$omp end parallel sections - if (n .ne. Z'243f') STOP 1 + if (n .ne. int(Z'243f')) STOP 1 end subroutine subroutine test2 use reduction5, min => max, max => min |