| 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 |
|
| 7 |
svfloat32_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 |
|
| 13 |
svfloat32_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 |
|
| 19 |
svfloat32_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 |
|
| 25 |
svfloat32_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 |
|
| 31 |
svfloat32_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 |
|
| 37 |
svfloat32_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 |
|
| 43 |
svfloat32_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 |
|
| 49 |
svfloat32_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 |
|
| 55 |
svfloat32_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 |
|
| 61 |
svfloat32_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 |
} |