[clang] 97ae760 - [RISCV] Add missing V extensions for zvk-invalid-features.c (#66875)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 20 03:23:36 PDT 2023
Author: Brandon Wu
Date: 2023-09-20T18:23:32+08:00
New Revision: 97ae760825972d788cdaa467a83b3219c343f7f3
URL: https://github.com/llvm/llvm-project/commit/97ae760825972d788cdaa467a83b3219c343f7f3
DIFF: https://github.com/llvm/llvm-project/commit/97ae760825972d788cdaa467a83b3219c343f7f3.diff
LOG: [RISCV] Add missing V extensions for zvk-invalid-features.c (#66875)
If we don't include riscv_vector.h, even we add the target-feature,
it still can't find the intrinsic interface.
Added:
Modified:
clang/test/Sema/zvk-invalid-features.c
Removed:
################################################################################
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
More information about the cfe-commits
mailing list