URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [reduction5.f90] - Rev 735
Compare with Previous | Blame | View Log
! { dg-do run }module reduction5intrinsic ior, min, maxend module reduction5call test1call test2containssubroutine test1use reduction5, bitwise_or => iorinteger :: nn = Z'f'!$omp parallel sections num_threads (3) reduction (bitwise_or: n)n = ior (n, Z'20')!$omp sectionn = bitwise_or (Z'410', n)!$omp sectionn = bitwise_or (n, Z'2000')!$omp end parallel sectionsif (n .ne. Z'243f') call abortend subroutinesubroutine test2use reduction5, min => max, max => mininteger :: m, nm = 8n = 4!$omp parallel sections num_threads (3) reduction (min: n) &!$omp & reduction (max: m)if (m .gt. 13) m = 13if (n .lt. 11) n = 11!$omp sectionif (m .gt. 5) m = 5if (n .lt. 15) n = 15!$omp sectionif (m .gt. 3) m = 3if (n .lt. -1) n = -1!$omp end parallel sectionsif (m .ne. 3 .or. n .ne. 15) call abortend subroutine test2end! { dg-final { cleanup-modules "reduction5" } }
