Skip to content

Commit 97ae760

Browse files
authored
[RISCV] Add missing V extensions for zvk-invalid-features.c (llvm#66875)
If we don't include riscv_vector.h, even we add the target-feature, it still can't find the intrinsic interface.
1 parent c366e61 commit 97ae760

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/test/Sema/zvk-invalid-features.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// REQUIRES: riscv-registered-target
2-
// RUN: %clang_cc1 -triple riscv64 %s -fsyntax-only -verify
2+
// RUN: %clang_cc1 -triple riscv64 %s -target-feature +v -fsyntax-only -verify
3+
4+
#include <riscv_vector.h>
35

46
void test_zvk_features() {
57
// zvbb

0 commit comments

Comments
 (0)