[clang] [CIR] Add sync scope to atomic fetch-and-update operation (PR #180770)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 10 08:41:13 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 87148 tests passed
* 754 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CIR/IR/invalid-atomic.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/IR/invalid-atomic.cir -verify-diagnostics -split-input-file
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/IR/invalid-atomic.cir -verify-diagnostics -split-input-file
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/IR/invalid-atomic.cir:5:37: error: unexpected error: custom op 'cir.atomic.fetch' expected 'syncscope'
# | %0 = cir.atomic.fetch and seq_cst %arg0, %arg1 : (!cir.ptr<!cir.float>, !cir.float) -> !cir.float
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/IR/invalid-atomic.cir:4:6: error: expected error "only atomic add, sub, max, and min operation could operate on floating-point values" was not produced
# | // expected-error @below {{only atomic add, sub, max, and min operation could operate on floating-point values}}
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/IR/invalid-atomic.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/IR/invalid-atomic.cir -verify-diagnostics -split-input-file
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/IR/invalid-atomic.cir -verify-diagnostics -split-input-file
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/IR/invalid-atomic.cir:5:37: error: unexpected error: custom op 'cir.atomic.fetch' expected 'syncscope'
# | %0 = cir.atomic.fetch and seq_cst %arg0, %arg1 : (!cir.ptr<!cir.float>, !cir.float) -> !cir.float
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/IR/invalid-atomic.cir:4:6: error: expected error "only atomic add, sub, max, and min operation could operate on floating-point values" was not produced
# | // expected-error @below {{only atomic add, sub, max, and min operation could operate on floating-point values}}
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/180770
More information about the cfe-commits
mailing list