diff options
Diffstat (limited to 'clang/test/SemaCXX/builtins-elementwise-math.cpp')
-rw-r--r-- | clang/test/SemaCXX/builtins-elementwise-math.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/builtins-elementwise-math.cpp b/clang/test/SemaCXX/builtins-elementwise-math.cpp index 499f279..898d869 100644 --- a/clang/test/SemaCXX/builtins-elementwise-math.cpp +++ b/clang/test/SemaCXX/builtins-elementwise-math.cpp @@ -83,6 +83,13 @@ void test_builtin_elementwise_ceil() { static_assert(!is_const<decltype(__builtin_elementwise_ceil(b))>::value); } +void test_builtin_elementwise_acos() { + const float a = 42.0; + float b = 42.3; + static_assert(!is_const<decltype(__builtin_elementwise_acos(a))>::value); + static_assert(!is_const<decltype(__builtin_elementwise_acos(b))>::value); +} + void test_builtin_elementwise_cos() { const float a = 42.0; float b = 42.3; @@ -90,6 +97,13 @@ void test_builtin_elementwise_cos() { static_assert(!is_const<decltype(__builtin_elementwise_cos(b))>::value); } +void test_builtin_elementwise_cosh() { + const float a = 42.0; + float b = 42.3; + static_assert(!is_const<decltype(__builtin_elementwise_cosh(a))>::value); + static_assert(!is_const<decltype(__builtin_elementwise_cosh(b))>::value); +} + void test_builtin_elementwise_exp() { const float a = 42.0; float b = 42.3; @@ -104,6 +118,13 @@ void test_builtin_elementwise_exp2() { static_assert(!is_const<decltype(__builtin_elementwise_exp2(b))>::value); } +void test_builtin_elementwise_asin() { + const float a = 42.0; + float b = 42.3; + static_assert(!is_const<decltype(__builtin_elementwise_asin(a))>::value); + static_assert(!is_const<decltype(__builtin_elementwise_asin(b))>::value); +} + void test_builtin_elementwise_sin() { const float a = 42.0; float b = 42.3; @@ -111,6 +132,20 @@ void test_builtin_elementwise_sin() { static_assert(!is_const<decltype(__builtin_elementwise_sin(b))>::value); } +void test_builtin_elementwise_sinh() { + const float a = 42.0; + float b = 42.3; + static_assert(!is_const<decltype(__builtin_elementwise_sinh(a))>::value); + static_assert(!is_const<decltype(__builtin_elementwise_sinh(b))>::value); +} + +void test_builtin_elementwise_atan() { + const float a = 42.0; + float b = 42.3; + static_assert(!is_const<decltype(__builtin_elementwise_atan(a))>::value); + static_assert(!is_const<decltype(__builtin_elementwise_atan(b))>::value); +} + void test_builtin_elementwise_tan() { const float a = 42.0; float b = 42.3; @@ -118,6 +153,13 @@ void test_builtin_elementwise_tan() { static_assert(!is_const<decltype(__builtin_elementwise_tan(b))>::value); } +void test_builtin_elementwise_tanh() { + const float a = 42.0; + float b = 42.3; + static_assert(!is_const<decltype(__builtin_elementwise_tanh(a))>::value); + static_assert(!is_const<decltype(__builtin_elementwise_tanh(b))>::value); +} + void test_builtin_elementwise_sqrt() { const float a = 42.0; float b = 42.3; |