[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------------
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Preprocessor/riscv-intrinsic-exts.c:20:26: error: CHECK-INTRINSIC-EXTS: expected string not found in input
# | // CHECK-INTRINSIC-EXTS: #define __riscv_intrinsic_v 1
# |                          ^
# | <stdin>:1:1: note: scanning from here
# | #define INT16_C(v) __INT16_C(v)
# | ^
# | <stdin>:75:1: note: possible intended match here
# | #define __BOOL_WIDTH__ 1
# | ^
# | 
# | 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:
# | <<<<<<
# |             1: #define INT16_C(v) __INT16_C(v) 
# | check:20'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2: #define INT16_MAX INT16_C(32767) 
# | check:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3: #define INT16_MIN (-INT16_C(32767)-1) 
# | check:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4: #define INT32_C(v) __INT32_C(v) 
# | check:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5: #define INT32_MAX INT32_C(2147483647) 
# | check:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             6: #define INT32_MIN (-INT32_C(2147483647)-1) 
# | check:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7: #define INT64_C(v) __INT64_C(v) 
# | check:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             8: #define INT64_MAX INT64_C( 9223372036854775807) 
# | check:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

```

</details>

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


More information about the cfe-commits mailing list