mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
[OpenMP] Fix atomic entries for captured logical operation
Added missing code for the captured atomic operation. Differential Revision: https://reviews.llvm.org/D94848
This commit is contained in:
parent
15fd6bae0e
commit
2d911f7c72
@ -2536,8 +2536,11 @@ ATOMIC_CRITICAL_CPT_MIX(float10, long double, div_cpt, /, fp, _Quad, 10r,
|
||||
\
|
||||
if (flag) { \
|
||||
new_value OP rhs; \
|
||||
} else \
|
||||
(*lhs) = new_value; \
|
||||
} else { \
|
||||
new_value = (*lhs); \
|
||||
(*lhs) OP rhs; \
|
||||
} \
|
||||
\
|
||||
__kmp_release_atomic_lock(&ATOMIC_LOCK##LCK_ID, gtid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user