[clang] [Clang][NFC] tests showcasing incorrect use of HIP and OpenCL memory scope macros (PR #188890)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 31 00:59:57 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 87198 tests passed
* 1355 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.CodeGenOpenCL/incorrect-atomic-scope.cl</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-unknown-unknown -target-cpu gfx1250 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=CHECK /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-unknown-unknown -target-cpu gfx1250 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=CHECK /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple spirv64-amd-amdhsa -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=CHECK /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple spirv64-amd-amdhsa -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl:37:9: error: '__builtin_amdgcn_flat_load_monitor_b32' cannot be invoked in the current context, as it requires the 'gfx1250-insts' feature(s)
# |    37 |  return __builtin_amdgcn_flat_load_monitor_b32(ptr, __ATOMIC_RELAXED, __OPENCL_MEMORY_SCOPE_DEVICE);
# |       |         ^
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=CHECK /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=CHECK /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/incorrect-atomic-scope.cl
# `-----------------------------
# error: command failed with exit status: 2

--

```
</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/188890


More information about the cfe-commits mailing list