[clang] [llvm] [openmp] [OMPIRBuilder] Fix atomic compare `==` on `x86-64` long double (PR #226567)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 23:13:50 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp,c -- clang/test/OpenMP/atomic_compare_long_double_codegen.c openmp/runtime/test/atomic/omp-atomic-compare-long-double.c clang/lib/CodeGen/CGStmtOpenMP.cpp llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/runtime/test/atomic/omp-atomic-compare-long-double.c b/openmp/runtime/test/atomic/omp-atomic-compare-long-double.c
index 0ffada8c2..de313577f 100644
--- a/openmp/runtime/test/atomic/omp-atomic-compare-long-double.c
+++ b/openmp/runtime/test/atomic/omp-atomic-compare-long-double.c
@@ -8,7 +8,7 @@
#include <stdio.h>
-#if defined(__x86_64__) && __LDBL_MANT_DIG__ == 64 && \
+#if defined(__x86_64__) && __LDBL_MANT_DIG__ == 64 && \
__SIZEOF_LONG_DOUBLE__ == 16
#define PADDED_LONG_DOUBLE 1
#else
``````````
</details>
https://github.com/llvm/llvm-project/pull/226567
More information about the cfe-commits
mailing list