1 // RUN: %clang_cc1 -triple riscv64 -target-feature +f -target-feature +d \
2 // RUN: -target-feature +v -target-feature +zfh -target-feature +zvfh \
3 // RUN: -disable-O0-optnone -o - -fsyntax-only %s -verify
4 // REQUIRES: riscv-registered-target
6 #include <riscv_vector.h>
8 vfloat32mf2_t
test_asin_vv_i8mf8(vfloat32mf2_t v
) {
10 return __builtin_elementwise_asin(v
);
11 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
14 vfloat32mf2_t
test_acos_vv_i8mf8(vfloat32mf2_t v
) {
16 return __builtin_elementwise_acos(v
);
17 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
20 vfloat32mf2_t
test_atan_vv_i8mf8(vfloat32mf2_t v
) {
22 return __builtin_elementwise_atan(v
);
23 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
26 vfloat32mf2_t
test_atan2_vv_i8mf8(vfloat32mf2_t v
) {
28 return __builtin_elementwise_atan2(v
, v
);
29 // expected-error@-1 {{1st argument must be a floating point type}}
32 vfloat32mf2_t
test_sin_vv_i8mf8(vfloat32mf2_t v
) {
34 return __builtin_elementwise_sin(v
);
35 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
38 vfloat32mf2_t
test_cos_vv_i8mf8(vfloat32mf2_t v
) {
40 return __builtin_elementwise_cos(v
);
41 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
44 vfloat32mf2_t
test_tan_vv_i8mf8(vfloat32mf2_t v
) {
46 return __builtin_elementwise_tan(v
);
47 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
50 vfloat32mf2_t
test_sinh_vv_i8mf8(vfloat32mf2_t v
) {
52 return __builtin_elementwise_sinh(v
);
53 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
56 vfloat32mf2_t
test_cosh_vv_i8mf8(vfloat32mf2_t v
) {
58 return __builtin_elementwise_cosh(v
);
59 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
62 vfloat32mf2_t
test_tanh_vv_i8mf8(vfloat32mf2_t v
) {
64 return __builtin_elementwise_tanh(v
);
65 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}