| 1 |
// REQUIRES: riscv-registered-target |
| 2 |
// RUN: %clang_cc1 -triple riscv32 -target-feature +v %s -fsyntax-only -verify |
| 3 |
|
| 4 |
#include <riscv_vector.h> |
| 5 |
#include <sifive_vector.h> |
| 6 |
|
| 7 |
vint8m1_t test_vloxei64_v_i8m1(const int8_t *base, vuint64m8_t bindex, size_t vl) { |
| 8 |
return __riscv_vloxei64(base, bindex, vl); // expected-error {{call to undeclared function '__riscv_vloxei64'}} expected-error {{returning 'int' from a function with incompatible result type 'vint8m1_t'}} |
| 9 |
} |
| 10 |
|
| 11 |
void test_vsoxei64_v_i8m1(int8_t *base, vuint64m8_t bindex, vint8m1_t value, size_t vl) { |
| 12 |
__riscv_vsoxei64(base, bindex, value, vl); // expected-error {{call to undeclared function '__riscv_vsoxei64'}} |
| 13 |
} |
| 14 |
|
| 15 |
void test_xsfvcp_sf_vc_x_se_u64m1(uint64_t rs1, size_t vl) { |
| 16 |
__riscv_sf_vc_x_se_u64m1(1, 1, 1, rs1, vl); // expected-error {{call to undeclared function '__riscv_sf_vc_x_se_u64m1'}} |
| 17 |
} |
| 18 |
|
| 19 |
void test_xsfvqmaccdod() { |
| 20 |
__riscv_sf_vqmacc_2x8x2(); // expected-error {{call to undeclared function '__riscv_sf_vqmacc_2x8x2'}} |
| 21 |
} |
| 22 |
|
| 23 |
void test_xsfvqmaccqoq() { |
| 24 |
__riscv_sf_vqmacc_4x8x4(); // expected-error {{call to undeclared function '__riscv_sf_vqmacc_4x8x4'}} |
| 25 |
} |
| 26 |
|
| 27 |
void test_xsfvfwmaccqqq() { |
| 28 |
__riscv_sf_vfwmacc_4x4x4(); // expected-error {{call to undeclared function '__riscv_sf_vfwmacc_4x4x4'}} |
| 29 |
} |
| 30 |
|
| 31 |
void test_xsfvfnrclipxfqf() { |
| 32 |
__riscv_sf_vfnrclip_x_f_qf(); // expected-error {{call to undeclared function '__riscv_sf_vfnrclip_x_f_qf'}} |
| 33 |
} |
| 34 |
|
| 35 |
void test_xsfvfnrclipxufqf() { |
| 36 |
__riscv_sf_vfnrclip_xu_f_qf(); // expected-error {{call to undeclared function '__riscv_sf_vfnrclip_xu_f_qf'}} |
| 37 |
} |
| 38 |
|
| 39 |
void test_zvfbfwma_vfwmaccbf16() { |
| 40 |
__riscv_vfwmaccbf16(); // expected-error {{call to undeclared function '__riscv_vfwmaccbf16'}} |
| 41 |
} |