Skip to content

Commit

Permalink
Fix SIMD tests on NEON
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jul 6, 2023
1 parent f050fbc commit 8296fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simd/unit_tests/TestSIMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void host_check_math_op_one_loader(UnaryOp unary_op, std::size_t n,
if (!loaded_arg) continue;
simd_type expected_result;
for (std::size_t lane = 0; lane < nlanes; ++lane) {
expected_result[lane] = unary_op.on_host_serial(arg[lane]);
expected_result[lane] = unary_op.on_host_serial(T(arg[lane]));
}
simd_type const computed_result = unary_op.on_host(arg);
host_check_equality(expected_result, computed_result, nlanes);
Expand Down

0 comments on commit 8296fb1

Please sign in to comment.