[flang-commits] [flang] [Flang][OpenMP] Fix for error in atomic read for different elements of the common symbol #80399 (PR #109265)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Sep 19 09:26:31 PDT 2024
================
@@ -0,0 +1,43 @@
+! RUN: %python %S/../test_errors.py %s %flang -fopenmp
+
+integer :: x, vv(2), xx(2)
+type t1
+ integer :: v,y,yy(2)
+end type t1
+type(t1)::t,tt(2)
+x=1
+xx=1
+vv=1
+t%y=1
+t%yy=1
+tt(1)%y=1
+tt(1)%yy=1
+tt(2)%v=1
+tt(2)%y=1
+tt(2)%yy=1
+
+!$omp atomic read
+ vv(1) = vv(2)
+!$omp atomic read
+ t%v = t%y
+!$omp atomic read
+ t%v = t%yy(1)
+!$omp atomic read
+ tt(1)%v = tt(1)%y
+!$omp atomic read
+ tt(1)%v = tt(2)%v
+!$omp atomic read
+ tt(1)%v = tt(1)%yy(1)
+!$omp atomic read
+ t%yy(2) = t%y
+!$omp atomic read
+ t%yy(2) = t%yy(1)
+!$omp atomic read
+ tt(1)%yy(2) = tt(1)%y
+!$omp atomic read
+ tt(1)%yy(2) = tt(1)%yy(1)
+!$omp atomic read
+ tt(1)%yy(2) = tt(2)%yy(2)
+!CHECK: pass
----------------
tblah wrote:
What is this CHECK intended to do?
https://github.com/llvm/llvm-project/pull/109265
More information about the flang-commits
mailing list