| 1 |
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */ |
| 2 |
|
| 3 |
#include "test_sme2_acle.h" |
| 4 |
|
| 5 |
/* |
| 6 |
** ldnt1_u64_base: |
| 7 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0\] |
| 8 |
** ret |
| 9 |
*/ |
| 10 |
TEST_LOAD_COUNT (ldnt1_u64_base, svuint64x2_t, uint64_t, |
| 11 |
z0 = svldnt1_u64_x2 (pn8, x0), |
| 12 |
z0 = svldnt1_x2 (pn8, x0)) |
| 13 |
|
| 14 |
/* |
| 15 |
** ldnt1_u64_index: |
| 16 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, x1, lsl #?3\] |
| 17 |
** ret |
| 18 |
*/ |
| 19 |
TEST_LOAD_COUNT (ldnt1_u64_index, svuint64x2_t, uint64_t, |
| 20 |
z0 = svldnt1_u64_x2 (pn8, x0 + x1), |
| 21 |
z0 = svldnt1_x2 (pn8, x0 + x1)) |
| 22 |
|
| 23 |
/* Moving the constant into a register would also be OK. */ |
| 24 |
/* |
| 25 |
** ldnt1_u64_1: |
| 26 |
** incb x0 |
| 27 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0\] |
| 28 |
** ret |
| 29 |
*/ |
| 30 |
TEST_LOAD_COUNT (ldnt1_u64_1, svuint64x2_t, uint64_t, |
| 31 |
z0 = svldnt1_u64_x2 (pn8, x0 + svcntd ()), |
| 32 |
z0 = svldnt1_x2 (pn8, x0 + svcntd ())) |
| 33 |
|
| 34 |
/* |
| 35 |
** ldnt1_u64_2: |
| 36 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, #2, mul vl\] |
| 37 |
** ret |
| 38 |
*/ |
| 39 |
TEST_LOAD_COUNT (ldnt1_u64_2, svuint64x2_t, uint64_t, |
| 40 |
z0 = svldnt1_u64_x2 (pn8, x0 + svcntd () * 2), |
| 41 |
z0 = svldnt1_x2 (pn8, x0 + svcntd () * 2)) |
| 42 |
|
| 43 |
/* |
| 44 |
** ldnt1_u64_14: |
| 45 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, #14, mul vl\] |
| 46 |
** ret |
| 47 |
*/ |
| 48 |
TEST_LOAD_COUNT (ldnt1_u64_14, svuint64x2_t, uint64_t, |
| 49 |
z0 = svldnt1_u64_x2 (pn8, x0 + svcntd () * 14), |
| 50 |
z0 = svldnt1_x2 (pn8, x0 + svcntd () * 14)) |
| 51 |
|
| 52 |
/* Moving the constant into a register would also be OK. */ |
| 53 |
/* |
| 54 |
** ldnt1_u64_16: |
| 55 |
** incb x0, all, mul #16 |
| 56 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0\] |
| 57 |
** ret |
| 58 |
*/ |
| 59 |
TEST_LOAD_COUNT (ldnt1_u64_16, svuint64x2_t, uint64_t, |
| 60 |
z0 = svldnt1_u64_x2 (pn8, x0 + svcntd () * 16), |
| 61 |
z0 = svldnt1_x2 (pn8, x0 + svcntd () * 16)) |
| 62 |
|
| 63 |
/* Moving the constant into a register would also be OK. */ |
| 64 |
/* |
| 65 |
** ldnt1_u64_m1: |
| 66 |
** decb x0 |
| 67 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0\] |
| 68 |
** ret |
| 69 |
*/ |
| 70 |
TEST_LOAD_COUNT (ldnt1_u64_m1, svuint64x2_t, uint64_t, |
| 71 |
z0 = svldnt1_u64_x2 (pn8, x0 - svcntd ()), |
| 72 |
z0 = svldnt1_x2 (pn8, x0 - svcntd ())) |
| 73 |
|
| 74 |
/* |
| 75 |
** ldnt1_u64_m2: |
| 76 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, #-2, mul vl\] |
| 77 |
** ret |
| 78 |
*/ |
| 79 |
TEST_LOAD_COUNT (ldnt1_u64_m2, svuint64x2_t, uint64_t, |
| 80 |
z0 = svldnt1_u64_x2 (pn8, x0 - svcntd () * 2), |
| 81 |
z0 = svldnt1_x2 (pn8, x0 - svcntd () * 2)) |
| 82 |
|
| 83 |
/* |
| 84 |
** ldnt1_u64_m16: |
| 85 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, #-16, mul vl\] |
| 86 |
** ret |
| 87 |
*/ |
| 88 |
TEST_LOAD_COUNT (ldnt1_u64_m16, svuint64x2_t, uint64_t, |
| 89 |
z0 = svldnt1_u64_x2 (pn8, x0 - svcntd () * 16), |
| 90 |
z0 = svldnt1_x2 (pn8, x0 - svcntd () * 16)) |
| 91 |
|
| 92 |
/* |
| 93 |
** ldnt1_u64_m18: |
| 94 |
** addvl (x[0-9]+), x0, #-18 |
| 95 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[\1\] |
| 96 |
** ret |
| 97 |
*/ |
| 98 |
TEST_LOAD_COUNT (ldnt1_u64_m18, svuint64x2_t, uint64_t, |
| 99 |
z0 = svldnt1_u64_x2 (pn8, x0 - svcntd () * 18), |
| 100 |
z0 = svldnt1_x2 (pn8, x0 - svcntd () * 18)) |
| 101 |
|
| 102 |
/* |
| 103 |
** ldnt1_u64_z17: |
| 104 |
** ldnt1d {z[^\n]+}, pn8/z, \[x0\] |
| 105 |
** mov [^\n]+ |
| 106 |
** mov [^\n]+ |
| 107 |
** ret |
| 108 |
*/ |
| 109 |
TEST_LOAD_COUNT (ldnt1_u64_z17, svuint64x2_t, uint64_t, |
| 110 |
z17 = svldnt1_u64_x2 (pn8, x0), |
| 111 |
z17 = svldnt1_x2 (pn8, x0)) |
| 112 |
|
| 113 |
/* |
| 114 |
** ldnt1_u64_z22: |
| 115 |
** ldnt1d {z22\.d(?: - |, )z23\.d}, pn8/z, \[x0\] |
| 116 |
** ret |
| 117 |
*/ |
| 118 |
TEST_LOAD_COUNT (ldnt1_u64_z22, svuint64x2_t, uint64_t, |
| 119 |
z22 = svldnt1_u64_x2 (pn8, x0), |
| 120 |
z22 = svldnt1_x2 (pn8, x0)) |
| 121 |
|
| 122 |
/* |
| 123 |
** ldnt1_u64_z28: |
| 124 |
** ldnt1d {z28\.d(?: - |, )z29\.d}, pn8/z, \[x0\] |
| 125 |
** ret |
| 126 |
*/ |
| 127 |
TEST_LOAD_COUNT (ldnt1_u64_z28, svuint64x2_t, uint64_t, |
| 128 |
z28 = svldnt1_u64_x2 (pn8, x0), |
| 129 |
z28 = svldnt1_x2 (pn8, x0)) |
| 130 |
|
| 131 |
/* |
| 132 |
** ldnt1_u64_pn0: |
| 133 |
** mov p([89]|1[0-5])\.b, p0\.b |
| 134 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn\1/z, \[x0\] |
| 135 |
** ret |
| 136 |
*/ |
| 137 |
TEST_LOAD_COUNT (ldnt1_u64_pn0, svuint64x2_t, uint64_t, |
| 138 |
z0 = svldnt1_u64_x2 (pn0, x0), |
| 139 |
z0 = svldnt1_x2 (pn0, x0)) |
| 140 |
|
| 141 |
/* |
| 142 |
** ldnt1_u64_pn7: |
| 143 |
** mov p([89]|1[0-5])\.b, p7\.b |
| 144 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn\1/z, \[x0\] |
| 145 |
** ret |
| 146 |
*/ |
| 147 |
TEST_LOAD_COUNT (ldnt1_u64_pn7, svuint64x2_t, uint64_t, |
| 148 |
z0 = svldnt1_u64_x2 (pn7, x0), |
| 149 |
z0 = svldnt1_x2 (pn7, x0)) |
| 150 |
|
| 151 |
/* |
| 152 |
** ldnt1_u64_pn15: |
| 153 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn15/z, \[x0\] |
| 154 |
** ret |
| 155 |
*/ |
| 156 |
TEST_LOAD_COUNT (ldnt1_u64_pn15, svuint64x2_t, uint64_t, |
| 157 |
z0 = svldnt1_u64_x2 (pn15, x0), |
| 158 |
z0 = svldnt1_x2 (pn15, x0)) |
| 159 |
|
| 160 |
/* |
| 161 |
** ldnt1_vnum_u64_0: |
| 162 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0\] |
| 163 |
** ret |
| 164 |
*/ |
| 165 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_0, svuint64x2_t, uint64_t, |
| 166 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, 0), |
| 167 |
z0 = svldnt1_vnum_x2 (pn8, x0, 0)) |
| 168 |
|
| 169 |
/* Moving the constant into a register would also be OK. */ |
| 170 |
/* |
| 171 |
** ldnt1_vnum_u64_1: |
| 172 |
** incb x0 |
| 173 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0\] |
| 174 |
** ret |
| 175 |
*/ |
| 176 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_1, svuint64x2_t, uint64_t, |
| 177 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, 1), |
| 178 |
z0 = svldnt1_vnum_x2 (pn8, x0, 1)) |
| 179 |
|
| 180 |
/* |
| 181 |
** ldnt1_vnum_u64_2: |
| 182 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, #2, mul vl\] |
| 183 |
** ret |
| 184 |
*/ |
| 185 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_2, svuint64x2_t, uint64_t, |
| 186 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, 2), |
| 187 |
z0 = svldnt1_vnum_x2 (pn8, x0, 2)) |
| 188 |
|
| 189 |
/* |
| 190 |
** ldnt1_vnum_u64_14: |
| 191 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, #14, mul vl\] |
| 192 |
** ret |
| 193 |
*/ |
| 194 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_14, svuint64x2_t, uint64_t, |
| 195 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, 14), |
| 196 |
z0 = svldnt1_vnum_x2 (pn8, x0, 14)) |
| 197 |
|
| 198 |
/* Moving the constant into a register would also be OK. */ |
| 199 |
/* |
| 200 |
** ldnt1_vnum_u64_16: |
| 201 |
** incb x0, all, mul #16 |
| 202 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0\] |
| 203 |
** ret |
| 204 |
*/ |
| 205 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_16, svuint64x2_t, uint64_t, |
| 206 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, 16), |
| 207 |
z0 = svldnt1_vnum_x2 (pn8, x0, 16)) |
| 208 |
|
| 209 |
/* Moving the constant into a register would also be OK. */ |
| 210 |
/* |
| 211 |
** ldnt1_vnum_u64_m1: |
| 212 |
** decb x0 |
| 213 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0\] |
| 214 |
** ret |
| 215 |
*/ |
| 216 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_m1, svuint64x2_t, uint64_t, |
| 217 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, -1), |
| 218 |
z0 = svldnt1_vnum_x2 (pn8, x0, -1)) |
| 219 |
|
| 220 |
/* |
| 221 |
** ldnt1_vnum_u64_m2: |
| 222 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, #-2, mul vl\] |
| 223 |
** ret |
| 224 |
*/ |
| 225 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_m2, svuint64x2_t, uint64_t, |
| 226 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, -2), |
| 227 |
z0 = svldnt1_vnum_x2 (pn8, x0, -2)) |
| 228 |
|
| 229 |
/* |
| 230 |
** ldnt1_vnum_u64_m16: |
| 231 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, #-16, mul vl\] |
| 232 |
** ret |
| 233 |
*/ |
| 234 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_m16, svuint64x2_t, uint64_t, |
| 235 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, -16), |
| 236 |
z0 = svldnt1_vnum_x2 (pn8, x0, -16)) |
| 237 |
|
| 238 |
/* |
| 239 |
** ldnt1_vnum_u64_m18: |
| 240 |
** addvl (x[0-9]+), x0, #-18 |
| 241 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[\1\] |
| 242 |
** ret |
| 243 |
*/ |
| 244 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_m18, svuint64x2_t, uint64_t, |
| 245 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, -18), |
| 246 |
z0 = svldnt1_vnum_x2 (pn8, x0, -18)) |
| 247 |
|
| 248 |
/* |
| 249 |
** ldnt1_vnum_u64_x1: |
| 250 |
** cntb (x[0-9]+) |
| 251 |
** ( |
| 252 |
** madd (x[0-9]+), (?:x1, \1|\1, x1), x0 |
| 253 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[\2\] |
| 254 |
** | |
| 255 |
** mul (x[0-9]+), (?:x1, \1|\1, x1) |
| 256 |
** ldnt1d {z0\.d(?: - |, )z1\.d}, pn8/z, \[x0, \3\] |
| 257 |
** ) |
| 258 |
** ret |
| 259 |
*/ |
| 260 |
TEST_LOAD_COUNT (ldnt1_vnum_u64_x1, svuint64x2_t, uint64_t, |
| 261 |
z0 = svldnt1_vnum_u64_x2 (pn8, x0, x1), |
| 262 |
z0 = svldnt1_vnum_x2 (pn8, x0, x1)) |