OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [pr34020.f90] - Rev 740

Go to most recent revision | Compare with Previous | Blame | View Log

! PR fortran/34020
! { dg-do run }

      subroutine atomic_add(lhs, rhs)
      real lhs, rhs
!$omp atomic
      lhs = rhs + lhs
      end

      real lhs, rhs
      integer i
      lhs = 0
      rhs = 1
!$omp parallel do num_threads(8) shared(lhs, rhs)
      do i = 1, 300000
        call atomic_add(lhs, rhs)
      enddo
      if (lhs .ne. 300000) call abort
      end

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.