| 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-i16i64 -target-feature +sve -verify=streaming-guard |
| 3 |
|
| 4 |
// REQUIRES: aarch64-registered-target |
| 5 |
|
| 6 |
#include <arm_sme.h> |
| 7 |
|
| 8 |
// Properties: guard="" streaming_guard="sme,sme-i16i64" flags="streaming-only,requires-za" |
| 9 |
|
| 10 |
void test(void) __arm_inout("za"){ |
| 11 |
svbool_t svbool_t_val; |
| 12 |
svint16_t svint16_t_val; |
| 13 |
svint64_t svint64_t_val; |
| 14 |
svuint16_t svuint16_t_val; |
| 15 |
svuint64_t svuint64_t_val; |
| 16 |
|
| 17 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 18 |
svaddha_za64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 19 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 20 |
svaddha_za64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 21 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 22 |
svaddha_za64_s64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 23 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 24 |
svaddha_za64_u64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 25 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 26 |
svaddva_za64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 27 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 28 |
svaddva_za64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 29 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 30 |
svaddva_za64_s64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 31 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 32 |
svaddva_za64_u64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 33 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 34 |
svmopa_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 35 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 36 |
svmopa_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 37 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 38 |
svmopa_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 39 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 40 |
svmopa_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 41 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 42 |
svmops_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 43 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 44 |
svmops_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 45 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 46 |
svmops_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 47 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 48 |
svmops_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 49 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 50 |
svsumopa_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 51 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 52 |
svsumopa_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 53 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 54 |
svsumops_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 55 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 56 |
svsumops_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 57 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 58 |
svusmopa_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 59 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 60 |
svusmopa_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 61 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 62 |
svusmops_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 63 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 64 |
svusmops_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 65 |
} |
| 66 |
|
| 67 |
void test_streaming(void) __arm_streaming __arm_inout("za"){ |
| 68 |
svbool_t svbool_t_val; |
| 69 |
svint16_t svint16_t_val; |
| 70 |
svint64_t svint64_t_val; |
| 71 |
svuint16_t svuint16_t_val; |
| 72 |
svuint64_t svuint64_t_val; |
| 73 |
|
| 74 |
svaddha_za64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 75 |
svaddha_za64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 76 |
svaddha_za64_s64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 77 |
svaddha_za64_u64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 78 |
svaddva_za64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 79 |
svaddva_za64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 80 |
svaddva_za64_s64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 81 |
svaddva_za64_u64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 82 |
svmopa_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 83 |
svmopa_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 84 |
svmopa_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 85 |
svmopa_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 86 |
svmops_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 87 |
svmops_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 88 |
svmops_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 89 |
svmops_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 90 |
svsumopa_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 91 |
svsumopa_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 92 |
svsumops_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 93 |
svsumops_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 94 |
svusmopa_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 95 |
svusmopa_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 96 |
svusmops_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 97 |
svusmops_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 98 |
} |
| 99 |
|
| 100 |
void test_streaming_compatible(void) __arm_streaming_compatible __arm_inout("za"){ |
| 101 |
svbool_t svbool_t_val; |
| 102 |
svint16_t svint16_t_val; |
| 103 |
svint64_t svint64_t_val; |
| 104 |
svuint16_t svuint16_t_val; |
| 105 |
svuint64_t svuint64_t_val; |
| 106 |
|
| 107 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 108 |
svaddha_za64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 109 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 110 |
svaddha_za64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 111 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 112 |
svaddha_za64_s64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 113 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 114 |
svaddha_za64_u64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 115 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 116 |
svaddva_za64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 117 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 118 |
svaddva_za64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 119 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 120 |
svaddva_za64_s64_m(2, svbool_t_val, svbool_t_val, svint64_t_val); |
| 121 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 122 |
svaddva_za64_u64_m(2, svbool_t_val, svbool_t_val, svuint64_t_val); |
| 123 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 124 |
svmopa_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 125 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 126 |
svmopa_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 127 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 128 |
svmopa_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 129 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 130 |
svmopa_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 131 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 132 |
svmops_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 133 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 134 |
svmops_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 135 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 136 |
svmops_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svint16_t_val); |
| 137 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 138 |
svmops_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svuint16_t_val); |
| 139 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 140 |
svsumopa_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 141 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 142 |
svsumopa_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 143 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 144 |
svsumops_za64_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 145 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 146 |
svsumops_za64_s16_m(2, svbool_t_val, svbool_t_val, svint16_t_val, svuint16_t_val); |
| 147 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 148 |
svusmopa_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 149 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 150 |
svusmopa_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 151 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 152 |
svusmops_za64_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 153 |
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}} |
| 154 |
svusmops_za64_u16_m(2, svbool_t_val, svbool_t_val, svuint16_t_val, svint16_t_val); |
| 155 |
} |