URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [omp_atomic3.f90] - Rev 735
Compare with Previous | Blame | View Log
! { dg-do run }integer (kind = 4) :: a, a2integer (kind = 2) :: b, b2real :: c, fdouble precision :: d, d2, c2integer, dimension (10) :: e!$omp atomic writea = 1!$omp atomic writeb = 2!$omp end atomic!$omp atomic writec = 3!$omp atomic writed = 1 + 2 + 3 - 2e = 5!$omp atomic writef = 6!$omp end atomic!$omp atomica = a + 4!$omp end atomic!$omp atomic updateb = 4 - b!$omp atomicc = c * 2!$omp atomic updated = 2 / d!$omp end atomic!$omp atomic reada2 = a!$omp atomic readb2 = b!$omp end atomic!$omp atomic readc2 = c!$omp atomic readd2 = dif (a2 .ne. 5 .or. b2 .ne. 2 .or. c2 .ne. 6 .or. d2 .ne. 0.5) call abort!$omp atomic writed = 1.2!$omp atomica = a + c + d!$omp atomicb = b - (a + c + d)if (a .ne. 12 .or. b .ne. -17) call abort!$omp atomica = c + d + a!$omp atomicb = a + c + d - bif (a .ne. 19 .or. b .ne. 43) call abort!$omp atomicb = (a + c + d) - ba = 32!$omp atomica = a / 3.4if (a .ne. 9 .or. b .ne. -16) call abortend
