URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [omp_atomic2.f90] - Rev 763
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }real, dimension (20) :: rinteger, dimension (20) :: dinteger :: i, j, k, ninteger (kind = 2) :: a, b, cdo 10 i = 1, 20r(i) = i10 d(i) = 21 - in = 20call foo (r, d, n)if (n .ne. 22) call abortif (any (r .ne. 33)) call aborti = 1j = 18k = 23!$omp atomici = min (i, j, k, n)if (i .ne. 1) call abort!$omp atomici = max (j, n, k, i)if (i .ne. 23) call aborta = 1b = 18c = 23!$omp atomica = min (a, b, c)if (a .ne. 1) call abort!$omp atomica = max (a, b, c)if (a .ne. 23) call abortcontainsfunction bar (i)real barinteger ibar = 12.0 + iend function barsubroutine foo (x, y, n)integer i, y (*), nreal x (*)do i = 1, n!$omp atomicx(y(i)) = x(y(i)) + bar (i)end do!$omp atomicn = n + 2end subroutine fooend
Go to most recent revision | Compare with Previous | Blame | View Log
