Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / aarch64-sve-vector-trig-ops.c
blob7ca941f578c70de3882634cee2a6c60cb08c5005
1 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve \
2 // RUN: -disable-O0-optnone -o - -fsyntax-only %s -verify
3 // REQUIRES: aarch64-registered-target
5 #include <arm_sve.h>
8 svfloat32_t test_sin_vv_i8mf8(svfloat32_t v) {
10 return __builtin_elementwise_sin(v);
11 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
14 svfloat32_t test_cos_vv_i8mf8(svfloat32_t v) {
16 return __builtin_elementwise_cos(v);
17 // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}