[clang] [RISCV] Add missing V extensions for zvk-invalid-features.c (PR #66875)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 20 01:54:45 PDT 2023
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
More information about the cfe-commits
mailing list