[clang] [llvm] [openmp] [OMPIRBuilder] Fix atomic compare `==` on `x86-64` long double (PR #226567)

Akash Manna via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 5 23:21:41 PST 2026


================
@@ -787,6 +787,7 @@ documentation](CIR/index.md) for more information regarding ClangIR's status and
 - Fixed USR generation for declarations whose signature mentions a class-type
   non-type template parameter. (#GH212351)
 - Fixed an assertion caused by Microsoft integer literals exceeding the maximum value. (#GH212504)
+- Fixed an assertion failure when `#pragma omp atomic compare` was applied to a `long double` on x86-64, whose 80-bit value is stored in 16 bytes. (#GH140080)
----------------
akash-manna-sky wrote:

Agreed, title, description and release note now say equality comparison on `x86-64`. The `<` and `>` forms still hit `CreateAtomicRMW` and need a `cmpxchg` loop; I'll do that as a follow-up. `i386`'s 12-byte long double needs the `libcall` path and stays out of scope.


https://github.com/llvm/llvm-project/pull/226567


More information about the cfe-commits mailing list