You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flang/test/Semantics/OpenMP/atomic-hint-clause.f90
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -12,29 +12,29 @@ program sample
12
12
integer, parameter:: a =1
13
13
!$omp atomic hint(1) write
14
14
y =2
15
-
15
+
16
16
!$omp atomic read hint(2)
17
-
y = x
18
-
17
+
y = x
18
+
19
19
!ERROR: The synchronization hint is not valid
20
20
!$omp atomic hint(3)
21
21
y = y +10
22
-
22
+
23
23
!$omp atomic update hint(5)
24
24
y = x + y
25
-
25
+
26
26
!ERROR: The synchronization hint is not valid
27
27
!$omp atomic hint(7) capture
28
28
!WARNING: In ATOMIC UPDATE operation with CAPTURE either statement could be the update and the capture, assuming the first one is the capture statement
29
29
y = x
30
30
x = y
31
31
!$omp end atomic
32
-
32
+
33
33
!ERROR: Synchronization hint must be a constant integer value
34
34
!ERROR: Must be a constant value
35
35
!$omp atomic update hint(x)
36
36
y = y *1
37
-
37
+
38
38
!$omp atomic read hint(4)
39
39
y = x
40
40
@@ -46,11 +46,11 @@ program sample
46
46
47
47
!$omp atomic hint(omp_lock_hint_speculative)
48
48
x = y + x
49
-
49
+
50
50
!ERROR: Synchronization hint must be a constant integer value
0 commit comments