[clang] [Clang] Change ballot mask handling for GPU intrinsics (PR #176202)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 15 09:36:47 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 51843 tests passed
* 905 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Headers/gpuintrin.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/ -triple amdgcn-amd-amdhsa -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\Headers\gpuintrin.c -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Headers\gpuintrin.c --check-prefix=AMDGPU
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/' -triple amdgcn-amd-amdhsa -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\Headers\gpuintrin.c' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Headers\gpuintrin.c' --check-prefix=AMDGPU
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Headers\gpuintrin.c:449:17: error: AMDGPU-NEXT: expected string not found in input
# | // AMDGPU-NEXT: [[TMP0:%.*]] = load i64, ptr [[__LANE_MASK_ADDR_ASCAST]], align 8
# | ^
# | <stdin>:428:50: note: scanning from here
# | store i8 %storedv, ptr %__x.addr.ascast, align 1
# | ^
# | <stdin>:428:50: note: with "__LANE_MASK_ADDR_ASCAST" equal to "%__lane_mask.addr.ascast"
# | store i8 %storedv, ptr %__x.addr.ascast, align 1
# | ^
# | <stdin>:429:2: note: possible intended match here
# | %0 = load i8, ptr %__x.addr.ascast, align 1
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Headers\gpuintrin.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 423: %retval.ascast = addrspacecast ptr addrspace(5) %retval to ptr
# | 424: %__lane_mask.addr.ascast = addrspacecast ptr addrspace(5) %__lane_mask.addr to ptr
# | 425: %__x.addr.ascast = addrspacecast ptr addrspace(5) %__x.addr to ptr
# | 426: store i64 %__lane_mask, ptr %__lane_mask.addr.ascast, align 8
# | 427: %storedv = zext i1 %__x to i8
# | 428: store i8 %storedv, ptr %__x.addr.ascast, align 1
# | next:449'0 X error: no match found
# | next:449'1 with "__LANE_MASK_ADDR_ASCAST" equal to "%__lane_mask.addr.ascast"
# | 429: %0 = load i8, ptr %__x.addr.ascast, align 1
# | next:449'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:449'2 ? possible intended match
# | 430: %loadedv = trunc i8 %0 to i1
# | next:449'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 431: %1 = call i64 @llvm.amdgcn.ballot.i64(i1 %loadedv)
# | next:449'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 432: ret i64 %1
# | next:449'0 ~~~~~~~~~~~~
# | 433: }
# | next:449'0 ~~
# | 434:
# | next:449'0 ~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/176202
More information about the cfe-commits
mailing list