[clang] [llvm] [clang][RISCV] Use macro to check if intrinsics are supported (PR #187197)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Sun May 3 23:21:58 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/53299
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Preprocessor/riscv-intrinsic-exts.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 5
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/23/include -nostdsysteminc -triple riscv32 -target-feature +zihintntl -E -dM /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Preprocessor/riscv-intrinsic-exts.c -o - | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --check-prefix=CHECK-INTRINSIC-EXTS /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Preprocessor/riscv-intrinsic-exts.c
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/23/include -nostdsysteminc -triple riscv32 -target-feature +zihintntl -E -dM /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Preprocessor/riscv-intrinsic-exts.c -o -
# .---command stderr------------
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Preprocessor/riscv-intrinsic-exts.c:16:10: fatal error: 'riscv_vector.h' file not found
# | 16 | #include <riscv_vector.h>
# | | ^~~~~~~~~~~~~~~~
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --check-prefix=CHECK-INTRINSIC-EXTS /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Preprocessor/riscv-intrinsic-exts.c
# .---command stderr------------
# | [1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Preprocessor/riscv-intrinsic-exts.c:20:26: [0m[0;1;31merror: [0m[1mCHECK-INTRINSIC-EXTS: expected string not found in input
[0m# | [1m[0m// CHECK-INTRINSIC-EXTS: #define __riscv_intrinsic_v 1
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:1:1: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0m#define INT16_C(v) __INT16_C(v)
# | [0;1;32m^
[0m# | [0;1;32m[0m[1m<stdin>:75:1: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m# | [1m[0m#define __BOOL_WIDTH__ 1
# | [0;1;32m^
[0m# | [0;1;32m[0m
# | Input file: <stdin>
# | Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Preprocessor/riscv-intrinsic-exts.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | [1m[0m[0;1;30m 1: [0m[1m[0;1;46m#define INT16_C(v) __INT16_C(v) [0m
# | [0;1;31mcheck:20'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
[0m# | [0;1;31m[0m[0;1;30m 2: [0m[1m[0;1;46m#define INT16_MAX INT16_C(32767) [0m
# | [0;1;31mcheck:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 3: [0m[1m[0;1;46m#define INT16_MIN (-INT16_C(32767)-1) [0m
# | [0;1;31mcheck:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 4: [0m[1m[0;1;46m#define INT32_C(v) __INT32_C(v) [0m
# | [0;1;31mcheck:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 5: [0m[1m[0;1;46m#define INT32_MAX INT32_C(2147483647) [0m
# | [0;1;31mcheck:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 6: [0m[1m[0;1;46m#define INT32_MIN (-INT32_C(2147483647)-1) [0m
# | [0;1;31mcheck:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 7: [0m[1m[0;1;46m#define INT64_C(v) __INT64_C(v) [0m
# | [0;1;31mcheck:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 8: [0m[1m[0;1;46m#define INT64_MAX INT64_C( 9223372036854775807) [0m
# | [0;1;31mcheck:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
```
</details>
https://github.com/llvm/llvm-project/pull/187197
More information about the cfe-commits
mailing list