| 354 | } |
| 355 | |
| 356 | TEST(promotionOfIndexVectorType) |
| 357 | { |
| 358 | Vc::vector<Vc::array<int, 1024>> data; |
| 359 | data.resize(1024); |
| 360 | int *ptr = &data[0][0]; |
| 361 | for (std::size_t i = 0; i < 1024 * 1024; ++i) { |
| 362 | ptr[i] = i; |
| 363 | } |
| 364 | |
| 365 | const Vc::short_v indexes = 1023 - seq<Vc::short_v>(); |
| 366 | Vc::int_v reference = Vc::simd_cast<Vc::int_v>(indexes) * 1024; |
| 367 | Vc::int_v test = data[indexes][0]; |
| 368 | COMPARE(test, reference); |
| 369 | } |
nothing calls this directly
no outgoing calls
no test coverage detected