MCPcopy Create free account
hub / github.com/catboost/catboost / Test_mm_loadu_ps

Method Test_mm_loadu_ps

library/cpp/sse/ut/test.cpp:580–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578
579
580void TSSEEmulTest::Test_mm_loadu_ps() {
581 alignas(16) float stub[8] = {
582 0.f, 1.f, 2.f, 3.f,
583 4.f, 5.f, 6.f, 7.f
584 };
585
586 for (size_t shift = 0; shift != 5; ++shift) {
587 const __m128 val = _mm_loadu_ps(&stub[shift]);
588 alignas(16) float res[4];
589 _mm_store_ps(res, val);
590
591 for (size_t i = 0; i != 4; ++i) {
592 UNIT_ASSERT_EQUAL_C(res[i], stub[shift + i], "res: " << HexEncode(res, 16) << " vs etalon: " << HexEncode(&stub[shift], 16));
593 }
594 }
595}
596
597
598void TSSEEmulTest::Test_mm_storeu_ps() {

Callers

nothing calls this directly

Calls 3

_mm_loadu_psFunction · 0.50
_mm_store_psFunction · 0.50
HexEncodeFunction · 0.50

Tested by

no test coverage detected