emit_x64_vector_floating_point: Fix out of bounds array access in EmitVectorOperation64
This commit is contained in:
parent
6ad1bce5e0
commit
eb2d28d2b1
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ static void EmitVectorOperation64(BlockOfCode& code, EmitContext& ctx, IR::Inst*
|
|||
code.movaps(xword[code.ABI_PARAM3], xmm_b);
|
||||
code.CallFunction(static_cast<void(*)(std::array<u64, 2>&, const std::array<u64, 2>&, const std::array<u64, 2>&)>(
|
||||
[](std::array<u64, 2>& result, const std::array<u64, 2>& a, const std::array<u64, 2>& b) {
|
||||
for (size_t i = 0; i < 4; ++i) {
|
||||
for (size_t i = 0; i < 2; ++i) {
|
||||
if (auto r = Common::ProcessNaNs(a[i], b[i])) {
|
||||
result[i] = *r;
|
||||
} else if (Common::IsNaN(result[i])) {
|
||||
|
|
Loading…
Reference in a new issue