| 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(vuint64m1_t vd, vuint64m1_t vs2, vuint64m1_t vs1, size_t vl) { |
| 7 |
// zvknhb |
| 8 |
__riscv_vsha2ch_vv_u64m1(vd, vs2, vs1, vl); // expected-error {{builtin requires at least one of the following extensions: zvknhb}} |
| 9 |
__riscv_vsha2cl_vv_u64m1(vd, vs2, vs1, vl); // expected-error {{builtin requires at least one of the following extensions: zvknhb}} |
| 10 |
__riscv_vsha2ms_vv_u64m1(vd, vs2, vs1, vl); // expected-error {{builtin requires at least one of the following extensions: zvknhb}} |
| 11 |
} |