[clang] [CIR] Implement missing __sync_* atomic builtins (PR #214606)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 24 06:22:54 PDT 2026
================
@@ -0,0 +1,230 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll
+// RUN: FileCheck --check-prefix=LLVM --input-file=%t-cir.ll %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll
+// RUN: FileCheck --check-prefix=OGCG --input-file=%t.ll %s
----------------
Lancern wrote:
Are all OGCG checks identical with the LLVM checks? If so, you could use the `LLVM` label on OGCG so we're confident that they are identical:
```suggestion
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll
// RUN: FileCheck --check-prefix=LLVM --input-file=%t.ll %s
```
https://github.com/llvm/llvm-project/pull/214606
More information about the cfe-commits
mailing list