| 1 |
// REQUIRES: riscv-registered-target |
| 2 |
// RUN: %clang_cc1 -triple riscv64 -target-feature +v -target-feature +zvknha %s -fsyntax-only -verify |
| 3 |
|
| 4 |
#include <riscv_vector.h> |
| 5 |
|
| 6 |
void test_zvk_features() { |
| 7 |
// zvknhb |
| 8 |
__riscv_vsha2ch_vv_u64m1(); // expected-error {{call to undeclared function '__riscv_vsha2ch_vv_u64m1'; ISO C99 and later do not support implicit function declarations}} |
| 9 |
__riscv_vsha2cl_vv_u64m1(); // expected-error {{call to undeclared function '__riscv_vsha2cl_vv_u64m1'; ISO C99 and later do not support implicit function declarations}} |
| 10 |
__riscv_vsha2ms_vv_u64m1(); // expected-error {{call to undeclared function '__riscv_vsha2ms_vv_u64m1'; ISO C99 and later do not support implicit function declarations}} |
| 11 |
} |