llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang <details> <summary>Changes</summary> If we don't include riscv_vector.h, even we add the target-feature, it still can't find the intrinsic interface. --- Full diff: https://github.com/llvm/llvm-project/pull/66875.diff 1 Files Affected: - (modified) clang/test/Sema/zvk-invalid-features.c (+3-1) ``````````diff diff --git a/clang/test/Sema/zvk-invalid-features.c b/clang/test/Sema/zvk-invalid-features.c index be1170df8f0c719..05dd6498ce01ec9 100644 --- a/clang/test/Sema/zvk-invalid-features.c +++ b/clang/test/Sema/zvk-invalid-features.c @@ -1,5 +1,7 @@ // REQUIRES: riscv-registered-target -// RUN: %clang_cc1 -triple riscv64 %s -fsyntax-only -verify +// RUN: %clang_cc1 -triple riscv64 %s -target-feature +v -fsyntax-only -verify + +#include <riscv_vector.h> void test_zvk_features() { // zvbb `````````` </details> https://github.com/llvm/llvm-project/pull/66875 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits