https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/66875
If we don't include riscv_vector.h, even we add the target-feature, it still can't find the intrinsic interface. >From fdf29e4b484d6d0d01e772464052a4f26376ff98 Mon Sep 17 00:00:00 2001 From: 4vtomat <brandon...@sifive.com> Date: Wed, 20 Sep 2023 01:44:33 -0700 Subject: [PATCH] [RISCV] Add missing V extensions for zvk-invalid-features.c If we don't include riscv_vector.h, even we add the target-feature, it still can't find the intrinsic interface. --- clang/test/Sema/zvk-invalid-features.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits