[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 15:56:13 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-with-thin-lto-ubuntu` running on `as-worker-92` while building `clang,libc` at step 7 "test-stage1-compiler".

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

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

```
Step 7 (test-stage1-compiler) failure: build (failure)
...
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/ld64.lld
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/wasm-ld
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/utils/lit/tests/lit.cfg:111: warning: Setting a timeout per test not supported. Requires the Python psutil module but it could not be found. Try installing it via pip or via your operating system's package manager.
 Some tests will be skipped and the --timeout command line argument will not work.
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/ld.lld
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/lld-link
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/ld64.lld
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/wasm-ld
-- Testing: 83413 tests, 72 workers --
Testing:  0.. 10
FAIL: Clang :: Headers/gpuintrin.c (12084 of 83413)
******************** TEST 'Clang :: Headers/gpuintrin.c' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/clang -cc1 -internal-isystem /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/lib/clang/21/include -nostdsysteminc -internal-isystem /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/Inputs/include    -internal-isystem /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/../../lib/Headers/    -triple amdgcn-amd-amdhsa -emit-llvm /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/gpuintrin.c -o -  | /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/FileCheck /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=AMDGPU
+ /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/FileCheck /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=AMDGPU
+ /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/clang -cc1 -internal-isystem /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/lib/clang/21/include -nostdsysteminc -internal-isystem /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/Inputs/include -internal-isystem /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/../../lib/Headers/ -triple amdgcn-amd-amdhsa -emit-llvm /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/gpuintrin.c -o -
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/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);
      |   ~~~~~~~~~~~~~~~~~~~~~           ^
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/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:  /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/FileCheck /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/clang/test/Headers/gpuintrin.c --check-prefix=AMDGPU

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 

1 warning(s) in tests
********************
Failed Tests (1):
  Clang :: Headers/gpuintrin.c


Testing Time: 219.42s

Total Discovered Tests: 113463
  Skipped          :     24 (0.02%)
  Unsupported      :   2445 (2.15%)
  Passed           : 110791 (97.65%)
  Expectedly Failed:    202 (0.18%)

```

</details>

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


More information about the libc-commits mailing list