[libc-commits] [clang] [libc] [Clang] Add width handling for <gpuintrin.h> shuffle helper (PR #125896)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Wed Feb 5 13:49:13 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `reverse-iteration` running on `hexagon-build-02` while building `clang,libc` at step 6 "check_all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/110/builds/3791

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (check_all) failure: test (failure)
******************** TEST 'Clang :: Headers/gpuintrin.c' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 2: /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/bin/clang -cc1 -internal-isystem /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/lib/clang/21/include -nostdsysteminc -internal-isystem /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/Inputs/include    -internal-isystem /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/../../lib/Headers/    -triple amdgcn-amd-amdhsa -emit-llvm /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/gpuintrin.c -o -  | /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/bin/FileCheck /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/gpuintrin.c --check-prefix=AMDGPU
+ /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/bin/clang -cc1 -internal-isystem /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/lib/clang/21/include -nostdsysteminc -internal-isystem /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/Inputs/include -internal-isystem /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/../../lib/Headers/ -triple amdgcn-amd-amdhsa -emit-llvm /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/gpuintrin.c -o -
+ /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/bin/FileCheck /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/gpuintrin.c --check-prefix=AMDGPU
/local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/gpuintrin.c:103:35: error: too few arguments to function call, expected 4, have 3
  103 |   __gpu_shuffle_idx_u32(-1, -1, -1);
      |   ~~~~~~~~~~~~~~~~~~~~~           ^
/local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/lib/clang/21/include/amdgpuintrin.h:148:1: note: '__gpu_shuffle_idx_u32' declared here
  148 | __gpu_shuffle_idx_u32(uint64_t __lane_mask, uint32_t __idx, uint32_t __x,
      | ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  149 |                       uint32_t __width) {
      |                       ~~~~~~~~~~~~~~~~
1 error generated.
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/bin/FileCheck /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/clang/test/Headers/gpuintrin.c --check-prefix=AMDGPU

--

********************


```

</details>

https://github.com/llvm/llvm-project/pull/125896


More information about the libc-commits mailing list