| 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 +i8mm -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,i8mm" streaming_guard="" flags="" |
| 9 |
|
| 10 |
void test(void) { |
| 11 |
svint8_t svint8_t_val; |
| 12 |
svint32_t svint32_t_val; |
| 13 |
svuint8_t svuint8_t_val; |
| 14 |
svuint32_t svuint32_t_val; |
| 15 |
|
| 16 |
svmmla(svint32_t_val, svint8_t_val, svint8_t_val); |
| 17 |
svmmla(svuint32_t_val, svuint8_t_val, svuint8_t_val); |
| 18 |
svmmla_s32(svint32_t_val, svint8_t_val, svint8_t_val); |
| 19 |
svmmla_u32(svuint32_t_val, svuint8_t_val, svuint8_t_val); |
| 20 |
svusmmla(svint32_t_val, svuint8_t_val, svint8_t_val); |
| 21 |
svusmmla_s32(svint32_t_val, svuint8_t_val, svint8_t_val); |
| 22 |
} |
| 23 |
|
| 24 |
void test_streaming(void) __arm_streaming{ |
| 25 |
svint8_t svint8_t_val; |
| 26 |
svint32_t svint32_t_val; |
| 27 |
svuint8_t svuint8_t_val; |
| 28 |
svuint32_t svuint32_t_val; |
| 29 |
|
| 30 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 31 |
svmmla(svint32_t_val, svint8_t_val, svint8_t_val); |
| 32 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 33 |
svmmla(svuint32_t_val, svuint8_t_val, svuint8_t_val); |
| 34 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 35 |
svmmla_s32(svint32_t_val, svint8_t_val, svint8_t_val); |
| 36 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 37 |
svmmla_u32(svuint32_t_val, svuint8_t_val, svuint8_t_val); |
| 38 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 39 |
svusmmla(svint32_t_val, svuint8_t_val, svint8_t_val); |
| 40 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 41 |
svusmmla_s32(svint32_t_val, svuint8_t_val, svint8_t_val); |
| 42 |
} |
| 43 |
|
| 44 |
void test_streaming_compatible(void) __arm_streaming_compatible{ |
| 45 |
svint8_t svint8_t_val; |
| 46 |
svint32_t svint32_t_val; |
| 47 |
svuint8_t svuint8_t_val; |
| 48 |
svuint32_t svuint32_t_val; |
| 49 |
|
| 50 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 51 |
svmmla(svint32_t_val, svint8_t_val, svint8_t_val); |
| 52 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 53 |
svmmla(svuint32_t_val, svuint8_t_val, svuint8_t_val); |
| 54 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 55 |
svmmla_s32(svint32_t_val, svint8_t_val, svint8_t_val); |
| 56 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 57 |
svmmla_u32(svuint32_t_val, svuint8_t_val, svuint8_t_val); |
| 58 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 59 |
svusmmla(svint32_t_val, svuint8_t_val, svint8_t_val); |
| 60 |
// guard-error@+1 {{builtin can only be called from a non-streaming function}} |
| 61 |
svusmmla_s32(svint32_t_val, svuint8_t_val, svint8_t_val); |
| 62 |
} |