| 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 +f32mm -target-feature +sme -target-feature +sve -verify=guard |
| 3 |
|
| 4 |
// REQUIRES: aarch64-registered-target |
| 5 |
|
| 6 |
#include <arm_sve.h> |
| 7 |
|
| 8 |
// Properties: guard="sve,f32mm" streaming_guard="" flags="" |
| 9 |
|
| 10 |
void test(void) { |
| 11 |
svfloat32_t svfloat32_t_val; |
| 12 |
|
| 13 |
svmmla(svfloat32_t_val, svfloat32_t_val, svfloat32_t_val); |
| 14 |
svmmla_f32(svfloat32_t_val, svfloat32_t_val, svfloat32_t_val); |
| 15 |
} |
| 16 |
|
| 17 |
void test_streaming(void) __arm_streaming{ |
| 18 |
svfloat32_t svfloat32_t_val; |
| 19 |
|
| 20 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 21 |
svmmla(svfloat32_t_val, svfloat32_t_val, svfloat32_t_val); |
| 22 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 23 |
svmmla_f32(svfloat32_t_val, svfloat32_t_val, svfloat32_t_val); |
| 24 |
} |
| 25 |
|
| 26 |
void test_streaming_compatible(void) __arm_streaming_compatible{ |
| 27 |
svfloat32_t svfloat32_t_val; |
| 28 |
|
| 29 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 30 |
svmmla(svfloat32_t_val, svfloat32_t_val, svfloat32_t_val); |
| 31 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 32 |
svmmla_f32(svfloat32_t_val, svfloat32_t_val, svfloat32_t_val); |
| 33 |
} |