| 1 |
// NOTE: File has been autogenerated by utils/aarch64_builtins_test_generator.py |
| 2 |
// RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -target-feature +sme-f16f16 -target-feature +sve -verify=streaming-guard |
| 3 |
|
| 4 |
// REQUIRES: aarch64-registered-target |
| 5 |
|
| 6 |
#include <arm_sve.h> |
| 7 |
|
| 8 |
// Properties: guard="" streaming_guard="sme,sme-f16f16" flags="streaming-only" |
| 9 |
|
| 10 |
void test(void) { |
| 11 |
svfloat16_t svfloat16_t_val; |
| 12 |
|
| 13 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 14 |
svcvt_f32(svfloat16_t_val); |
| 15 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 16 |
svcvt_f32_f16_x2(svfloat16_t_val); |
| 17 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 18 |
svcvtl_f32(svfloat16_t_val); |
| 19 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 20 |
svcvtl_f32_f16_x2(svfloat16_t_val); |
| 21 |
} |
| 22 |
|
| 23 |
void test_streaming(void) __arm_streaming{ |
| 24 |
svfloat16_t svfloat16_t_val; |
| 25 |
|
| 26 |
svcvt_f32(svfloat16_t_val); |
| 27 |
svcvt_f32_f16_x2(svfloat16_t_val); |
| 28 |
svcvtl_f32(svfloat16_t_val); |
| 29 |
svcvtl_f32_f16_x2(svfloat16_t_val); |
| 30 |
} |
| 31 |
|
| 32 |
void test_streaming_compatible(void) __arm_streaming_compatible{ |
| 33 |
svfloat16_t svfloat16_t_val; |
| 34 |
|
| 35 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 36 |
svcvt_f32(svfloat16_t_val); |
| 37 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 38 |
svcvt_f32_f16_x2(svfloat16_t_val); |
| 39 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 40 |
svcvtl_f32(svfloat16_t_val); |
| 41 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 42 |
svcvtl_f32_f16_x2(svfloat16_t_val); |
| 43 |
} |