Skip to content

Commit

Permalink
Added correction due to code review request
Browse files Browse the repository at this point in the history
  • Loading branch information
shajder committed Jun 13, 2023
1 parent 0625ef6 commit 867df9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_conformance/math_brute_force/ternary_half.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ int TestFunc_Half_Half_Half_Half(const Func *f, MTdata d, bool relaxedMode)
if (gSkipCorrectnessTesting) break;

// Verify data
uint32_t *t = (uint32_t *)gOut_Ref;
uint16_t *t = (uint16_t *)gOut_Ref;
for (size_t j = 0; j < half_buffer_size; j++)
{
for (auto k = gMinVectorSizeIndex; k < gMaxVectorSizeIndex; k++)
{
uint32_t *q = (uint32_t *)(gOut[k]);
uint16_t *q = (uint16_t *)(gOut[k]);

// If we aren't getting the correctly rounded result
if (t[j] != q[j])
Expand Down

0 comments on commit 867df9f

Please sign in to comment.