URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 273 |
Rev 519 |
! { dg-do run }
|
! { dg-do run }
|
real, dimension (5) :: b
|
real, dimension (5) :: b
|
b = 5
|
b = 5
|
call foo (b)
|
call foo (b)
|
contains
|
contains
|
subroutine foo (a)
|
subroutine foo (a)
|
real, dimension (5) :: a
|
real, dimension (5) :: a
|
logical :: l
|
logical :: l
|
l = .false.
|
l = .false.
|
!$omp parallel private (a) reduction (.or.:l)
|
!$omp parallel private (a) reduction (.or.:l)
|
a = 15
|
a = 15
|
l = bar (a)
|
l = bar (a)
|
!$omp end parallel
|
!$omp end parallel
|
if (l) call abort
|
if (l) call abort
|
end subroutine
|
end subroutine
|
function bar (a)
|
function bar (a)
|
real, dimension (5) :: a
|
real, dimension (5) :: a
|
logical :: bar
|
logical :: bar
|
bar = any (a .ne. 15)
|
bar = any (a .ne. 15)
|
end function
|
end function
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.