[clang] [clang][LoongArch] Check target features in CheckLoongArchBuiltinFunctionCall (PR #191811)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 19 19:42:02 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-clang-flang` running on `rocm-worker-hw-01` while building `clang` at step 3 "annotate".

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

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

```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py ...' (failure)
...
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/power_of_two_alignment.cpp (923 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/pr38704.c (924 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/present/target.c (925 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/present/target_enter_data.c (926 of 1329)
PASS: libomptarget :: amdgcn-amd-amdhsa :: sanitizer/kernel_crash_single.c (927 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/present/target_exit_data_delete.c (928 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/present/target_exit_data_release.c (929 of 1329)
PASS: libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp (930 of 1329)
PASS: libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-teams-threads.cpp (931 of 1329)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/workshare_chunk.c (932 of 1329)
FAIL: libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-advanced.cpp (933 of 1329)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-advanced.cpp' FAILED ********************
Exit Code: 125

Command Output (stdout):
--
# RUN: at line 2
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp    -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib  -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-advanced.cpp -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp -Xoffload-linker -lompdevice
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-advanced.cpp -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp -Xoffload-linker -lompdevice
# note: command had no output on stdout or stderr
# RUN: at line 3
rm -rf /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir
# executed command: rm -rf /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 4
mkdir -p /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir
# executed command: mkdir -p /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 5
env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp 2>&1 | /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-advanced.cpp
# executed command: env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-advanced.cpp
# note: command had no output on stdout or stderr
# RUN: at line 6
ls -t /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir/*.json | sed -n '1p' | grep . | xargs -I {} /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify {}
# executed command: ls -t '/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir/*.json'
# note: command had no output on stdout or stderr
# executed command: sed -n 1p
# note: command had no output on stdout or stderr
# executed command: grep .
# note: command had no output on stdout or stderr
# executed command: xargs -I '{}' /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify '{}'
# .---command stdout------------
# | [llvm-omp-kernel-replay] Replay device memory verified!
# `-----------------------------
# RUN: at line 7
ls -t /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir/*.json | sed -n '2p' | grep . | xargs -I {} /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify {}
# executed command: ls -t '/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir/*.json'
Step 9 (Add check check-offload) failure: Add check check-offload (failure)
...
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/power_of_two_alignment.cpp (923 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/pr38704.c (924 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/present/target.c (925 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/present/target_enter_data.c (926 of 1329)
PASS: libomptarget :: amdgcn-amd-amdhsa :: sanitizer/kernel_crash_single.c (927 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/present/target_exit_data_delete.c (928 of 1329)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/present/target_exit_data_release.c (929 of 1329)
PASS: libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp (930 of 1329)
PASS: libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-teams-threads.cpp (931 of 1329)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/workshare_chunk.c (932 of 1329)
FAIL: libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-advanced.cpp (933 of 1329)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-advanced.cpp' FAILED ********************
Exit Code: 125

Command Output (stdout):
--
# RUN: at line 2
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp    -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib  -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-advanced.cpp -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp -Xoffload-linker -lompdevice
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-advanced.cpp -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp -Xoffload-linker -lompdevice
# note: command had no output on stdout or stderr
# RUN: at line 3
rm -rf /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir
# executed command: rm -rf /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 4
mkdir -p /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir
# executed command: mkdir -p /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 5
env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp 2>&1 | /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-advanced.cpp
# executed command: env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-advanced.cpp
# note: command had no output on stdout or stderr
# RUN: at line 6
ls -t /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir/*.json | sed -n '1p' | grep . | xargs -I {} /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify {}
# executed command: ls -t '/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir/*.json'
# note: command had no output on stdout or stderr
# executed command: sed -n 1p
# note: command had no output on stdout or stderr
# executed command: grep .
# note: command had no output on stdout or stderr
# executed command: xargs -I '{}' /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify '{}'
# .---command stdout------------
# | [llvm-omp-kernel-replay] Replay device memory verified!
# `-----------------------------
# RUN: at line 7
ls -t /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir/*.json | sed -n '2p' | grep . | xargs -I {} /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify {}
# executed command: ls -t '/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-advanced.cpp.tmp.testdir/*.json'

```

</details>

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


More information about the cfe-commits mailing list