brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 04e4960 Raw
66 lines · c
1// RUN: %clang_cc1 -triple aarch64 -target-feature +sve \
2// RUN:   -disable-O0-optnone -o - -fsyntax-only %s -verify
3// REQUIRES: aarch64-registered-target
4
5#include <arm_sve.h>
6
7svfloat32_t test_asin_vv_i8mf8(svfloat32_t v) {
8
9  return __builtin_elementwise_asin(v);
10  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
11}
12
13svfloat32_t test_acos_vv_i8mf8(svfloat32_t v) {
14
15  return __builtin_elementwise_acos(v);
16  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
17}
18
19svfloat32_t test_atan_vv_i8mf8(svfloat32_t v) {
20
21  return __builtin_elementwise_atan(v);
22  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
23}
24
25svfloat32_t test_atan2_vv_i8mf8(svfloat32_t v) {
26
27  return __builtin_elementwise_atan2(v, v);
28  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
29}
30
31svfloat32_t test_sin_vv_i8mf8(svfloat32_t v) {
32
33  return __builtin_elementwise_sin(v);
34  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
35}
36
37svfloat32_t test_cos_vv_i8mf8(svfloat32_t v) {
38
39  return __builtin_elementwise_cos(v);
40  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
41}
42
43svfloat32_t test_tan_vv_i8mf8(svfloat32_t v) {
44
45  return __builtin_elementwise_tan(v);
46  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
47}
48
49svfloat32_t test_sinh_vv_i8mf8(svfloat32_t v) {
50
51  return __builtin_elementwise_sinh(v);
52  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
53}
54
55svfloat32_t test_cosh_vv_i8mf8(svfloat32_t v) {
56
57  return __builtin_elementwise_cosh(v);
58  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
59}
60
61svfloat32_t test_tanh_vv_i8mf8(svfloat32_t v) {
62
63  return __builtin_elementwise_tanh(v);
64  // expected-error@-1 {{1st argument must be a scalar or vector of floating-point types}}
65}
66