MCPcopy Create free account
hub / github.com/VcDevel/Vc / TEST

Function TEST

tests/subscript.cpp:356–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356TEST(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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected