| 1 |
/* { dg-do run { target aarch64_sve128_hw } } */ |
| 2 |
/* { dg-options "-O3 -msve-vector-bits=128 -std=gnu99" } */ |
| 3 |
|
| 4 |
#include "svlast.c" |
| 5 |
|
| 6 |
int |
| 7 |
main (void) |
| 8 |
{ |
| 9 |
int8_t res_8_SV_VL1__a = 1; |
| 10 |
int8_t res_8_SV_VL2__a = 2; |
| 11 |
int8_t res_8_SV_VL3__a = 3; |
| 12 |
int8_t res_8_SV_VL4__a = 4; |
| 13 |
int8_t res_8_SV_VL5__a = 5; |
| 14 |
int8_t res_8_SV_VL6__a = 6; |
| 15 |
int8_t res_8_SV_VL7__a = 7; |
| 16 |
int8_t res_8_SV_VL8__a = 8; |
| 17 |
int8_t res_8_SV_VL16__a = 0; |
| 18 |
uint8_t res_8_SV_VL1_u_a = 1; |
| 19 |
uint8_t res_8_SV_VL2_u_a = 2; |
| 20 |
uint8_t res_8_SV_VL3_u_a = 3; |
| 21 |
uint8_t res_8_SV_VL4_u_a = 4; |
| 22 |
uint8_t res_8_SV_VL5_u_a = 5; |
| 23 |
uint8_t res_8_SV_VL6_u_a = 6; |
| 24 |
uint8_t res_8_SV_VL7_u_a = 7; |
| 25 |
uint8_t res_8_SV_VL8_u_a = 8; |
| 26 |
uint8_t res_8_SV_VL16_u_a = 0; |
| 27 |
int16_t res_16_SV_VL1__a = 1; |
| 28 |
int16_t res_16_SV_VL2__a = 2; |
| 29 |
int16_t res_16_SV_VL3__a = 3; |
| 30 |
int16_t res_16_SV_VL4__a = 4; |
| 31 |
int16_t res_16_SV_VL5__a = 5; |
| 32 |
int16_t res_16_SV_VL6__a = 6; |
| 33 |
int16_t res_16_SV_VL7__a = 7; |
| 34 |
int16_t res_16_SV_VL8__a = 0; |
| 35 |
int16_t res_16_SV_VL16__a = 0; |
| 36 |
uint16_t res_16_SV_VL1_u_a = 1; |
| 37 |
uint16_t res_16_SV_VL2_u_a = 2; |
| 38 |
uint16_t res_16_SV_VL3_u_a = 3; |
| 39 |
uint16_t res_16_SV_VL4_u_a = 4; |
| 40 |
uint16_t res_16_SV_VL5_u_a = 5; |
| 41 |
uint16_t res_16_SV_VL6_u_a = 6; |
| 42 |
uint16_t res_16_SV_VL7_u_a = 7; |
| 43 |
uint16_t res_16_SV_VL8_u_a = 0; |
| 44 |
uint16_t res_16_SV_VL16_u_a = 0; |
| 45 |
int32_t res_32_SV_VL1__a = 1; |
| 46 |
int32_t res_32_SV_VL2__a = 2; |
| 47 |
int32_t res_32_SV_VL3__a = 3; |
| 48 |
int32_t res_32_SV_VL4__a = 0; |
| 49 |
int32_t res_32_SV_VL5__a = 0; |
| 50 |
int32_t res_32_SV_VL6__a = 0; |
| 51 |
int32_t res_32_SV_VL7__a = 0; |
| 52 |
int32_t res_32_SV_VL8__a = 0; |
| 53 |
int32_t res_32_SV_VL16__a = 0; |
| 54 |
uint32_t res_32_SV_VL1_u_a = 1; |
| 55 |
uint32_t res_32_SV_VL2_u_a = 2; |
| 56 |
uint32_t res_32_SV_VL3_u_a = 3; |
| 57 |
uint32_t res_32_SV_VL4_u_a = 0; |
| 58 |
uint32_t res_32_SV_VL5_u_a = 0; |
| 59 |
uint32_t res_32_SV_VL6_u_a = 0; |
| 60 |
uint32_t res_32_SV_VL7_u_a = 0; |
| 61 |
uint32_t res_32_SV_VL8_u_a = 0; |
| 62 |
uint32_t res_32_SV_VL16_u_a = 0; |
| 63 |
int64_t res_64_SV_VL1__a = 1; |
| 64 |
int64_t res_64_SV_VL2__a = 0; |
| 65 |
int64_t res_64_SV_VL3__a = 0; |
| 66 |
int64_t res_64_SV_VL4__a = 0; |
| 67 |
int64_t res_64_SV_VL5__a = 0; |
| 68 |
int64_t res_64_SV_VL6__a = 0; |
| 69 |
int64_t res_64_SV_VL7__a = 0; |
| 70 |
int64_t res_64_SV_VL8__a = 0; |
| 71 |
int64_t res_64_SV_VL16__a = 0; |
| 72 |
uint64_t res_64_SV_VL1_u_a = 1; |
| 73 |
uint64_t res_64_SV_VL2_u_a = 0; |
| 74 |
uint64_t res_64_SV_VL3_u_a = 0; |
| 75 |
uint64_t res_64_SV_VL4_u_a = 0; |
| 76 |
uint64_t res_64_SV_VL5_u_a = 0; |
| 77 |
uint64_t res_64_SV_VL6_u_a = 0; |
| 78 |
uint64_t res_64_SV_VL7_u_a = 0; |
| 79 |
uint64_t res_64_SV_VL8_u_a = 0; |
| 80 |
uint64_t res_64_SV_VL16_u_a = 0; |
| 81 |
int8_t res_8_SV_VL1__b = 0; |
| 82 |
int8_t res_8_SV_VL2__b = 1; |
| 83 |
int8_t res_8_SV_VL3__b = 2; |
| 84 |
int8_t res_8_SV_VL4__b = 3; |
| 85 |
int8_t res_8_SV_VL5__b = 4; |
| 86 |
int8_t res_8_SV_VL6__b = 5; |
| 87 |
int8_t res_8_SV_VL7__b = 6; |
| 88 |
int8_t res_8_SV_VL8__b = 7; |
| 89 |
int8_t res_8_SV_VL16__b = 15; |
| 90 |
uint8_t res_8_SV_VL1_u_b = 0; |
| 91 |
uint8_t res_8_SV_VL2_u_b = 1; |
| 92 |
uint8_t res_8_SV_VL3_u_b = 2; |
| 93 |
uint8_t res_8_SV_VL4_u_b = 3; |
| 94 |
uint8_t res_8_SV_VL5_u_b = 4; |
| 95 |
uint8_t res_8_SV_VL6_u_b = 5; |
| 96 |
uint8_t res_8_SV_VL7_u_b = 6; |
| 97 |
uint8_t res_8_SV_VL8_u_b = 7; |
| 98 |
uint8_t res_8_SV_VL16_u_b = 15; |
| 99 |
int16_t res_16_SV_VL1__b = 0; |
| 100 |
int16_t res_16_SV_VL2__b = 1; |
| 101 |
int16_t res_16_SV_VL3__b = 2; |
| 102 |
int16_t res_16_SV_VL4__b = 3; |
| 103 |
int16_t res_16_SV_VL5__b = 4; |
| 104 |
int16_t res_16_SV_VL6__b = 5; |
| 105 |
int16_t res_16_SV_VL7__b = 6; |
| 106 |
int16_t res_16_SV_VL8__b = 7; |
| 107 |
int16_t res_16_SV_VL16__b = 7; |
| 108 |
uint16_t res_16_SV_VL1_u_b = 0; |
| 109 |
uint16_t res_16_SV_VL2_u_b = 1; |
| 110 |
uint16_t res_16_SV_VL3_u_b = 2; |
| 111 |
uint16_t res_16_SV_VL4_u_b = 3; |
| 112 |
uint16_t res_16_SV_VL5_u_b = 4; |
| 113 |
uint16_t res_16_SV_VL6_u_b = 5; |
| 114 |
uint16_t res_16_SV_VL7_u_b = 6; |
| 115 |
uint16_t res_16_SV_VL8_u_b = 7; |
| 116 |
uint16_t res_16_SV_VL16_u_b = 7; |
| 117 |
int32_t res_32_SV_VL1__b = 0; |
| 118 |
int32_t res_32_SV_VL2__b = 1; |
| 119 |
int32_t res_32_SV_VL3__b = 2; |
| 120 |
int32_t res_32_SV_VL4__b = 3; |
| 121 |
int32_t res_32_SV_VL5__b = 3; |
| 122 |
int32_t res_32_SV_VL6__b = 3; |
| 123 |
int32_t res_32_SV_VL7__b = 3; |
| 124 |
int32_t res_32_SV_VL8__b = 3; |
| 125 |
int32_t res_32_SV_VL16__b = 3; |
| 126 |
uint32_t res_32_SV_VL1_u_b = 0; |
| 127 |
uint32_t res_32_SV_VL2_u_b = 1; |
| 128 |
uint32_t res_32_SV_VL3_u_b = 2; |
| 129 |
uint32_t res_32_SV_VL4_u_b = 3; |
| 130 |
uint32_t res_32_SV_VL5_u_b = 3; |
| 131 |
uint32_t res_32_SV_VL6_u_b = 3; |
| 132 |
uint32_t res_32_SV_VL7_u_b = 3; |
| 133 |
uint32_t res_32_SV_VL8_u_b = 3; |
| 134 |
uint32_t res_32_SV_VL16_u_b = 3; |
| 135 |
int64_t res_64_SV_VL1__b = 0; |
| 136 |
int64_t res_64_SV_VL2__b = 1; |
| 137 |
int64_t res_64_SV_VL3__b = 1; |
| 138 |
int64_t res_64_SV_VL4__b = 1; |
| 139 |
int64_t res_64_SV_VL5__b = 1; |
| 140 |
int64_t res_64_SV_VL6__b = 1; |
| 141 |
int64_t res_64_SV_VL7__b = 1; |
| 142 |
int64_t res_64_SV_VL8__b = 1; |
| 143 |
int64_t res_64_SV_VL16__b = 1; |
| 144 |
uint64_t res_64_SV_VL1_u_b = 0; |
| 145 |
uint64_t res_64_SV_VL2_u_b = 1; |
| 146 |
uint64_t res_64_SV_VL3_u_b = 1; |
| 147 |
uint64_t res_64_SV_VL4_u_b = 1; |
| 148 |
uint64_t res_64_SV_VL5_u_b = 1; |
| 149 |
uint64_t res_64_SV_VL6_u_b = 1; |
| 150 |
uint64_t res_64_SV_VL7_u_b = 1; |
| 151 |
uint64_t res_64_SV_VL8_u_b = 1; |
| 152 |
uint64_t res_64_SV_VL16_u_b = 1; |
| 153 |
|
| 154 |
int8_t res_8_SV_VL1__a_false = 0; |
| 155 |
int8_t res_8_SV_VL2__a_false = 0; |
| 156 |
int8_t res_8_SV_VL3__a_false = 0; |
| 157 |
int8_t res_8_SV_VL4__a_false = 0; |
| 158 |
int8_t res_8_SV_VL5__a_false = 0; |
| 159 |
int8_t res_8_SV_VL6__a_false = 0; |
| 160 |
int8_t res_8_SV_VL7__a_false = 0; |
| 161 |
int8_t res_8_SV_VL8__a_false = 0; |
| 162 |
int8_t res_8_SV_VL16__a_false = 0; |
| 163 |
uint8_t res_8_SV_VL1_u_a_false = 0; |
| 164 |
uint8_t res_8_SV_VL2_u_a_false = 0; |
| 165 |
uint8_t res_8_SV_VL3_u_a_false = 0; |
| 166 |
uint8_t res_8_SV_VL4_u_a_false = 0; |
| 167 |
uint8_t res_8_SV_VL5_u_a_false = 0; |
| 168 |
uint8_t res_8_SV_VL6_u_a_false = 0; |
| 169 |
uint8_t res_8_SV_VL7_u_a_false = 0; |
| 170 |
uint8_t res_8_SV_VL8_u_a_false = 0; |
| 171 |
uint8_t res_8_SV_VL16_u_a_false = 0; |
| 172 |
int16_t res_16_SV_VL1__a_false = 0; |
| 173 |
int16_t res_16_SV_VL2__a_false = 0; |
| 174 |
int16_t res_16_SV_VL3__a_false = 0; |
| 175 |
int16_t res_16_SV_VL4__a_false = 0; |
| 176 |
int16_t res_16_SV_VL5__a_false = 0; |
| 177 |
int16_t res_16_SV_VL6__a_false = 0; |
| 178 |
int16_t res_16_SV_VL7__a_false = 0; |
| 179 |
int16_t res_16_SV_VL8__a_false = 0; |
| 180 |
int16_t res_16_SV_VL16__a_false = 0; |
| 181 |
uint16_t res_16_SV_VL1_u_a_false = 0; |
| 182 |
uint16_t res_16_SV_VL2_u_a_false = 0; |
| 183 |
uint16_t res_16_SV_VL3_u_a_false = 0; |
| 184 |
uint16_t res_16_SV_VL4_u_a_false = 0; |
| 185 |
uint16_t res_16_SV_VL5_u_a_false = 0; |
| 186 |
uint16_t res_16_SV_VL6_u_a_false = 0; |
| 187 |
uint16_t res_16_SV_VL7_u_a_false = 0; |
| 188 |
uint16_t res_16_SV_VL8_u_a_false = 0; |
| 189 |
uint16_t res_16_SV_VL16_u_a_false = 0; |
| 190 |
int32_t res_32_SV_VL1__a_false = 0; |
| 191 |
int32_t res_32_SV_VL2__a_false = 0; |
| 192 |
int32_t res_32_SV_VL3__a_false = 0; |
| 193 |
int32_t res_32_SV_VL4__a_false = 0; |
| 194 |
int32_t res_32_SV_VL5__a_false = 0; |
| 195 |
int32_t res_32_SV_VL6__a_false = 0; |
| 196 |
int32_t res_32_SV_VL7__a_false = 0; |
| 197 |
int32_t res_32_SV_VL8__a_false = 0; |
| 198 |
int32_t res_32_SV_VL16__a_false = 0; |
| 199 |
uint32_t res_32_SV_VL1_u_a_false = 0; |
| 200 |
uint32_t res_32_SV_VL2_u_a_false = 0; |
| 201 |
uint32_t res_32_SV_VL3_u_a_false = 0; |
| 202 |
uint32_t res_32_SV_VL4_u_a_false = 0; |
| 203 |
uint32_t res_32_SV_VL5_u_a_false = 0; |
| 204 |
uint32_t res_32_SV_VL6_u_a_false = 0; |
| 205 |
uint32_t res_32_SV_VL7_u_a_false = 0; |
| 206 |
uint32_t res_32_SV_VL8_u_a_false = 0; |
| 207 |
uint32_t res_32_SV_VL16_u_a_false = 0; |
| 208 |
int64_t res_64_SV_VL1__a_false = 0; |
| 209 |
int64_t res_64_SV_VL2__a_false = 0; |
| 210 |
int64_t res_64_SV_VL3__a_false = 0; |
| 211 |
int64_t res_64_SV_VL4__a_false = 0; |
| 212 |
int64_t res_64_SV_VL5__a_false = 0; |
| 213 |
int64_t res_64_SV_VL6__a_false = 0; |
| 214 |
int64_t res_64_SV_VL7__a_false = 0; |
| 215 |
int64_t res_64_SV_VL8__a_false = 0; |
| 216 |
int64_t res_64_SV_VL16__a_false = 0; |
| 217 |
uint64_t res_64_SV_VL1_u_a_false = 0; |
| 218 |
uint64_t res_64_SV_VL2_u_a_false = 0; |
| 219 |
uint64_t res_64_SV_VL3_u_a_false = 0; |
| 220 |
uint64_t res_64_SV_VL4_u_a_false = 0; |
| 221 |
uint64_t res_64_SV_VL5_u_a_false = 0; |
| 222 |
uint64_t res_64_SV_VL6_u_a_false = 0; |
| 223 |
uint64_t res_64_SV_VL7_u_a_false = 0; |
| 224 |
uint64_t res_64_SV_VL8_u_a_false = 0; |
| 225 |
uint64_t res_64_SV_VL16_u_a_false = 0; |
| 226 |
int8_t res_8_SV_VL1__b_false = 15; |
| 227 |
int8_t res_8_SV_VL2__b_false = 15; |
| 228 |
int8_t res_8_SV_VL3__b_false = 15; |
| 229 |
int8_t res_8_SV_VL4__b_false = 15; |
| 230 |
int8_t res_8_SV_VL5__b_false = 15; |
| 231 |
int8_t res_8_SV_VL6__b_false = 15; |
| 232 |
int8_t res_8_SV_VL7__b_false = 15; |
| 233 |
int8_t res_8_SV_VL8__b_false = 15; |
| 234 |
int8_t res_8_SV_VL16__b_false = 15; |
| 235 |
uint8_t res_8_SV_VL1_u_b_false = 15; |
| 236 |
uint8_t res_8_SV_VL2_u_b_false = 15; |
| 237 |
uint8_t res_8_SV_VL3_u_b_false = 15; |
| 238 |
uint8_t res_8_SV_VL4_u_b_false = 15; |
| 239 |
uint8_t res_8_SV_VL5_u_b_false = 15; |
| 240 |
uint8_t res_8_SV_VL6_u_b_false = 15; |
| 241 |
uint8_t res_8_SV_VL7_u_b_false = 15; |
| 242 |
uint8_t res_8_SV_VL8_u_b_false = 15; |
| 243 |
uint8_t res_8_SV_VL16_u_b_false = 15; |
| 244 |
int16_t res_16_SV_VL1__b_false = 7; |
| 245 |
int16_t res_16_SV_VL2__b_false = 7; |
| 246 |
int16_t res_16_SV_VL3__b_false = 7; |
| 247 |
int16_t res_16_SV_VL4__b_false = 7; |
| 248 |
int16_t res_16_SV_VL5__b_false = 7; |
| 249 |
int16_t res_16_SV_VL6__b_false = 7; |
| 250 |
int16_t res_16_SV_VL7__b_false = 7; |
| 251 |
int16_t res_16_SV_VL8__b_false = 7; |
| 252 |
int16_t res_16_SV_VL16__b_false = 7; |
| 253 |
uint16_t res_16_SV_VL1_u_b_false = 7; |
| 254 |
uint16_t res_16_SV_VL2_u_b_false = 7; |
| 255 |
uint16_t res_16_SV_VL3_u_b_false = 7; |
| 256 |
uint16_t res_16_SV_VL4_u_b_false = 7; |
| 257 |
uint16_t res_16_SV_VL5_u_b_false = 7; |
| 258 |
uint16_t res_16_SV_VL6_u_b_false = 7; |
| 259 |
uint16_t res_16_SV_VL7_u_b_false = 7; |
| 260 |
uint16_t res_16_SV_VL8_u_b_false = 7; |
| 261 |
uint16_t res_16_SV_VL16_u_b_false = 7; |
| 262 |
int32_t res_32_SV_VL1__b_false = 3; |
| 263 |
int32_t res_32_SV_VL2__b_false = 3; |
| 264 |
int32_t res_32_SV_VL3__b_false = 3; |
| 265 |
int32_t res_32_SV_VL4__b_false = 3; |
| 266 |
int32_t res_32_SV_VL5__b_false = 3; |
| 267 |
int32_t res_32_SV_VL6__b_false = 3; |
| 268 |
int32_t res_32_SV_VL7__b_false = 3; |
| 269 |
int32_t res_32_SV_VL8__b_false = 3; |
| 270 |
int32_t res_32_SV_VL16__b_false = 3; |
| 271 |
uint32_t res_32_SV_VL1_u_b_false = 3; |
| 272 |
uint32_t res_32_SV_VL2_u_b_false = 3; |
| 273 |
uint32_t res_32_SV_VL3_u_b_false = 3; |
| 274 |
uint32_t res_32_SV_VL4_u_b_false = 3; |
| 275 |
uint32_t res_32_SV_VL5_u_b_false = 3; |
| 276 |
uint32_t res_32_SV_VL6_u_b_false = 3; |
| 277 |
uint32_t res_32_SV_VL7_u_b_false = 3; |
| 278 |
uint32_t res_32_SV_VL8_u_b_false = 3; |
| 279 |
uint32_t res_32_SV_VL16_u_b_false = 3; |
| 280 |
int64_t res_64_SV_VL1__b_false = 1; |
| 281 |
int64_t res_64_SV_VL2__b_false = 1; |
| 282 |
int64_t res_64_SV_VL3__b_false = 1; |
| 283 |
int64_t res_64_SV_VL4__b_false = 1; |
| 284 |
int64_t res_64_SV_VL5__b_false = 1; |
| 285 |
int64_t res_64_SV_VL6__b_false = 1; |
| 286 |
int64_t res_64_SV_VL7__b_false = 1; |
| 287 |
int64_t res_64_SV_VL8__b_false = 1; |
| 288 |
int64_t res_64_SV_VL16__b_false = 1; |
| 289 |
uint64_t res_64_SV_VL1_u_b_false = 1; |
| 290 |
uint64_t res_64_SV_VL2_u_b_false = 1; |
| 291 |
uint64_t res_64_SV_VL3_u_b_false = 1; |
| 292 |
uint64_t res_64_SV_VL4_u_b_false = 1; |
| 293 |
uint64_t res_64_SV_VL5_u_b_false = 1; |
| 294 |
uint64_t res_64_SV_VL6_u_b_false = 1; |
| 295 |
uint64_t res_64_SV_VL7_u_b_false = 1; |
| 296 |
uint64_t res_64_SV_VL8_u_b_false = 1; |
| 297 |
uint64_t res_64_SV_VL16_u_b_false = 1; |
| 298 |
|
| 299 |
#undef SVELAST_DEF |
| 300 |
#define SVELAST_DEF(size, pat, sign, ab, su) \ |
| 301 |
if (NAME (foo, size, pat, sign, ab) \ |
| 302 |
(svindex_ ## su ## size (0, 1)) != \ |
| 303 |
NAME (res, size, pat, sign, ab)) \ |
| 304 |
__builtin_abort (); \ |
| 305 |
if (NAMEF (foo, size, pat, sign, ab) \ |
| 306 |
(svindex_ ## su ## size (0, 1)) != \ |
| 307 |
NAMEF (res, size, pat, sign, ab)) \ |
| 308 |
__builtin_abort (); |
| 309 |
|
| 310 |
ALL_POS () |
| 311 |
|
| 312 |
return 0; |
| 313 |
} |