| 1 |
/* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */ |
| 2 |
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */ |
| 3 |
|
| 4 |
#include "test_sve_acle.h" |
| 5 |
|
| 6 |
/* |
| 7 |
** ldnt1sw_gather_s64_tied1: |
| 8 |
** ldnt1sw z0\.d, p0/z, \[z0\.d\] |
| 9 |
** ret |
| 10 |
*/ |
| 11 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_s64_tied1, svint64_t, svuint64_t, |
| 12 |
z0_res = svldnt1sw_gather_u64base_s64 (p0, z0), |
| 13 |
z0_res = svldnt1sw_gather_s64 (p0, z0)) |
| 14 |
|
| 15 |
/* |
| 16 |
** ldnt1sw_gather_s64_untied: |
| 17 |
** ldnt1sw z0\.d, p0/z, \[z1\.d\] |
| 18 |
** ret |
| 19 |
*/ |
| 20 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_s64_untied, svint64_t, svuint64_t, |
| 21 |
z0_res = svldnt1sw_gather_u64base_s64 (p0, z1), |
| 22 |
z0_res = svldnt1sw_gather_s64 (p0, z1)) |
| 23 |
|
| 24 |
/* |
| 25 |
** ldnt1sw_gather_x0_s64_offset: |
| 26 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, x0\] |
| 27 |
** ret |
| 28 |
*/ |
| 29 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_x0_s64_offset, svint64_t, svuint64_t, |
| 30 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, x0), |
| 31 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, x0)) |
| 32 |
|
| 33 |
/* |
| 34 |
** ldnt1sw_gather_m4_s64_offset: |
| 35 |
** mov (x[0-9]+), #?-4 |
| 36 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 37 |
** ret |
| 38 |
*/ |
| 39 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_m4_s64_offset, svint64_t, svuint64_t, |
| 40 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, -4), |
| 41 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, -4)) |
| 42 |
|
| 43 |
/* |
| 44 |
** ldnt1sw_gather_0_s64_offset: |
| 45 |
** ldnt1sw z0\.d, p0/z, \[z0\.d\] |
| 46 |
** ret |
| 47 |
*/ |
| 48 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_0_s64_offset, svint64_t, svuint64_t, |
| 49 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, 0), |
| 50 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, 0)) |
| 51 |
|
| 52 |
/* |
| 53 |
** ldnt1sw_gather_5_s64_offset: |
| 54 |
** mov (x[0-9]+), #?5 |
| 55 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 56 |
** ret |
| 57 |
*/ |
| 58 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_5_s64_offset, svint64_t, svuint64_t, |
| 59 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, 5), |
| 60 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, 5)) |
| 61 |
|
| 62 |
/* |
| 63 |
** ldnt1sw_gather_6_s64_offset: |
| 64 |
** mov (x[0-9]+), #?6 |
| 65 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 66 |
** ret |
| 67 |
*/ |
| 68 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_6_s64_offset, svint64_t, svuint64_t, |
| 69 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, 6), |
| 70 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, 6)) |
| 71 |
|
| 72 |
/* |
| 73 |
** ldnt1sw_gather_7_s64_offset: |
| 74 |
** mov (x[0-9]+), #?7 |
| 75 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 76 |
** ret |
| 77 |
*/ |
| 78 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_7_s64_offset, svint64_t, svuint64_t, |
| 79 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, 7), |
| 80 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, 7)) |
| 81 |
|
| 82 |
/* |
| 83 |
** ldnt1sw_gather_8_s64_offset: |
| 84 |
** mov (x[0-9]+), #?8 |
| 85 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 86 |
** ret |
| 87 |
*/ |
| 88 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_8_s64_offset, svint64_t, svuint64_t, |
| 89 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, 8), |
| 90 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, 8)) |
| 91 |
|
| 92 |
/* |
| 93 |
** ldnt1sw_gather_124_s64_offset: |
| 94 |
** mov (x[0-9]+), #?124 |
| 95 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 96 |
** ret |
| 97 |
*/ |
| 98 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_124_s64_offset, svint64_t, svuint64_t, |
| 99 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, 124), |
| 100 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, 124)) |
| 101 |
|
| 102 |
/* |
| 103 |
** ldnt1sw_gather_128_s64_offset: |
| 104 |
** mov (x[0-9]+), #?128 |
| 105 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 106 |
** ret |
| 107 |
*/ |
| 108 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_128_s64_offset, svint64_t, svuint64_t, |
| 109 |
z0_res = svldnt1sw_gather_u64base_offset_s64 (p0, z0, 128), |
| 110 |
z0_res = svldnt1sw_gather_offset_s64 (p0, z0, 128)) |
| 111 |
|
| 112 |
/* |
| 113 |
** ldnt1sw_gather_x0_s64_index: |
| 114 |
** lsl (x[0-9]+), x0, #?2 |
| 115 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 116 |
** ret |
| 117 |
*/ |
| 118 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_x0_s64_index, svint64_t, svuint64_t, |
| 119 |
z0_res = svldnt1sw_gather_u64base_index_s64 (p0, z0, x0), |
| 120 |
z0_res = svldnt1sw_gather_index_s64 (p0, z0, x0)) |
| 121 |
|
| 122 |
/* |
| 123 |
** ldnt1sw_gather_m1_s64_index: |
| 124 |
** mov (x[0-9]+), #?-4 |
| 125 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 126 |
** ret |
| 127 |
*/ |
| 128 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_m1_s64_index, svint64_t, svuint64_t, |
| 129 |
z0_res = svldnt1sw_gather_u64base_index_s64 (p0, z0, -1), |
| 130 |
z0_res = svldnt1sw_gather_index_s64 (p0, z0, -1)) |
| 131 |
|
| 132 |
/* |
| 133 |
** ldnt1sw_gather_0_s64_index: |
| 134 |
** ldnt1sw z0\.d, p0/z, \[z0\.d\] |
| 135 |
** ret |
| 136 |
*/ |
| 137 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_0_s64_index, svint64_t, svuint64_t, |
| 138 |
z0_res = svldnt1sw_gather_u64base_index_s64 (p0, z0, 0), |
| 139 |
z0_res = svldnt1sw_gather_index_s64 (p0, z0, 0)) |
| 140 |
|
| 141 |
/* |
| 142 |
** ldnt1sw_gather_5_s64_index: |
| 143 |
** mov (x[0-9]+), #?20 |
| 144 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 145 |
** ret |
| 146 |
*/ |
| 147 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_5_s64_index, svint64_t, svuint64_t, |
| 148 |
z0_res = svldnt1sw_gather_u64base_index_s64 (p0, z0, 5), |
| 149 |
z0_res = svldnt1sw_gather_index_s64 (p0, z0, 5)) |
| 150 |
|
| 151 |
/* |
| 152 |
** ldnt1sw_gather_31_s64_index: |
| 153 |
** mov (x[0-9]+), #?124 |
| 154 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 155 |
** ret |
| 156 |
*/ |
| 157 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_31_s64_index, svint64_t, svuint64_t, |
| 158 |
z0_res = svldnt1sw_gather_u64base_index_s64 (p0, z0, 31), |
| 159 |
z0_res = svldnt1sw_gather_index_s64 (p0, z0, 31)) |
| 160 |
|
| 161 |
/* |
| 162 |
** ldnt1sw_gather_32_s64_index: |
| 163 |
** mov (x[0-9]+), #?128 |
| 164 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, \1\] |
| 165 |
** ret |
| 166 |
*/ |
| 167 |
TEST_LOAD_GATHER_ZS (ldnt1sw_gather_32_s64_index, svint64_t, svuint64_t, |
| 168 |
z0_res = svldnt1sw_gather_u64base_index_s64 (p0, z0, 32), |
| 169 |
z0_res = svldnt1sw_gather_index_s64 (p0, z0, 32)) |
| 170 |
|
| 171 |
/* |
| 172 |
** ldnt1sw_gather_x0_s64_s64offset: |
| 173 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, x0\] |
| 174 |
** ret |
| 175 |
*/ |
| 176 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_x0_s64_s64offset, svint64_t, int32_t, svint64_t, |
| 177 |
z0_res = svldnt1sw_gather_s64offset_s64 (p0, x0, z0), |
| 178 |
z0_res = svldnt1sw_gather_offset_s64 (p0, x0, z0)) |
| 179 |
|
| 180 |
/* |
| 181 |
** ldnt1sw_gather_tied1_s64_s64offset: |
| 182 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, x0\] |
| 183 |
** ret |
| 184 |
*/ |
| 185 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_tied1_s64_s64offset, svint64_t, int32_t, svint64_t, |
| 186 |
z0_res = svldnt1sw_gather_s64offset_s64 (p0, x0, z0), |
| 187 |
z0_res = svldnt1sw_gather_offset_s64 (p0, x0, z0)) |
| 188 |
|
| 189 |
/* |
| 190 |
** ldnt1sw_gather_untied_s64_s64offset: |
| 191 |
** ldnt1sw z0\.d, p0/z, \[z1\.d, x0\] |
| 192 |
** ret |
| 193 |
*/ |
| 194 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_untied_s64_s64offset, svint64_t, int32_t, svint64_t, |
| 195 |
z0_res = svldnt1sw_gather_s64offset_s64 (p0, x0, z1), |
| 196 |
z0_res = svldnt1sw_gather_offset_s64 (p0, x0, z1)) |
| 197 |
|
| 198 |
/* |
| 199 |
** ldnt1sw_gather_x0_s64_u64offset: |
| 200 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, x0\] |
| 201 |
** ret |
| 202 |
*/ |
| 203 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_x0_s64_u64offset, svint64_t, int32_t, svuint64_t, |
| 204 |
z0_res = svldnt1sw_gather_u64offset_s64 (p0, x0, z0), |
| 205 |
z0_res = svldnt1sw_gather_offset_s64 (p0, x0, z0)) |
| 206 |
|
| 207 |
/* |
| 208 |
** ldnt1sw_gather_tied1_s64_u64offset: |
| 209 |
** ldnt1sw z0\.d, p0/z, \[z0\.d, x0\] |
| 210 |
** ret |
| 211 |
*/ |
| 212 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_tied1_s64_u64offset, svint64_t, int32_t, svuint64_t, |
| 213 |
z0_res = svldnt1sw_gather_u64offset_s64 (p0, x0, z0), |
| 214 |
z0_res = svldnt1sw_gather_offset_s64 (p0, x0, z0)) |
| 215 |
|
| 216 |
/* |
| 217 |
** ldnt1sw_gather_untied_s64_u64offset: |
| 218 |
** ldnt1sw z0\.d, p0/z, \[z1\.d, x0\] |
| 219 |
** ret |
| 220 |
*/ |
| 221 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_untied_s64_u64offset, svint64_t, int32_t, svuint64_t, |
| 222 |
z0_res = svldnt1sw_gather_u64offset_s64 (p0, x0, z1), |
| 223 |
z0_res = svldnt1sw_gather_offset_s64 (p0, x0, z1)) |
| 224 |
|
| 225 |
/* |
| 226 |
** ldnt1sw_gather_x0_s64_s64index: |
| 227 |
** lsl (z[0-9]+\.d), z0\.d, #2 |
| 228 |
** ldnt1sw z0\.d, p0/z, \[\1, x0\] |
| 229 |
** ret |
| 230 |
*/ |
| 231 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_x0_s64_s64index, svint64_t, int32_t, svint64_t, |
| 232 |
z0_res = svldnt1sw_gather_s64index_s64 (p0, x0, z0), |
| 233 |
z0_res = svldnt1sw_gather_index_s64 (p0, x0, z0)) |
| 234 |
|
| 235 |
/* |
| 236 |
** ldnt1sw_gather_tied1_s64_s64index: |
| 237 |
** lsl (z[0-9]+\.d), z0\.d, #2 |
| 238 |
** ldnt1sw z0\.d, p0/z, \[\1, x0\] |
| 239 |
** ret |
| 240 |
*/ |
| 241 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_tied1_s64_s64index, svint64_t, int32_t, svint64_t, |
| 242 |
z0_res = svldnt1sw_gather_s64index_s64 (p0, x0, z0), |
| 243 |
z0_res = svldnt1sw_gather_index_s64 (p0, x0, z0)) |
| 244 |
|
| 245 |
/* |
| 246 |
** ldnt1sw_gather_untied_s64_s64index: |
| 247 |
** lsl (z[0-9]+\.d), z1\.d, #2 |
| 248 |
** ldnt1sw z0\.d, p0/z, \[\1, x0\] |
| 249 |
** ret |
| 250 |
*/ |
| 251 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_untied_s64_s64index, svint64_t, int32_t, svint64_t, |
| 252 |
z0_res = svldnt1sw_gather_s64index_s64 (p0, x0, z1), |
| 253 |
z0_res = svldnt1sw_gather_index_s64 (p0, x0, z1)) |
| 254 |
|
| 255 |
/* |
| 256 |
** ldnt1sw_gather_x0_s64_u64index: |
| 257 |
** lsl (z[0-9]+\.d), z0\.d, #2 |
| 258 |
** ldnt1sw z0\.d, p0/z, \[\1, x0\] |
| 259 |
** ret |
| 260 |
*/ |
| 261 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_x0_s64_u64index, svint64_t, int32_t, svuint64_t, |
| 262 |
z0_res = svldnt1sw_gather_u64index_s64 (p0, x0, z0), |
| 263 |
z0_res = svldnt1sw_gather_index_s64 (p0, x0, z0)) |
| 264 |
|
| 265 |
/* |
| 266 |
** ldnt1sw_gather_tied1_s64_u64index: |
| 267 |
** lsl (z[0-9]+\.d), z0\.d, #2 |
| 268 |
** ldnt1sw z0\.d, p0/z, \[\1, x0\] |
| 269 |
** ret |
| 270 |
*/ |
| 271 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_tied1_s64_u64index, svint64_t, int32_t, svuint64_t, |
| 272 |
z0_res = svldnt1sw_gather_u64index_s64 (p0, x0, z0), |
| 273 |
z0_res = svldnt1sw_gather_index_s64 (p0, x0, z0)) |
| 274 |
|
| 275 |
/* |
| 276 |
** ldnt1sw_gather_untied_s64_u64index: |
| 277 |
** lsl (z[0-9]+\.d), z1\.d, #2 |
| 278 |
** ldnt1sw z0\.d, p0/z, \[\1, x0\] |
| 279 |
** ret |
| 280 |
*/ |
| 281 |
TEST_LOAD_GATHER_SZ (ldnt1sw_gather_untied_s64_u64index, svint64_t, int32_t, svuint64_t, |
| 282 |
z0_res = svldnt1sw_gather_u64index_s64 (p0, x0, z1), |
| 283 |
z0_res = svldnt1sw_gather_index_s64 (p0, x0, z1)) |