From 85b2e956a7198d0f091a676e9372261b4e4b0283 Mon Sep 17 00:00:00 2001 From: The-Little-Wolf <116989599+The-Little-Wolf@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:29:14 -0800 Subject: [PATCH] [CPU/x64_sequences] - MAX_V128 fixs - change e.vandps to e.vorps in MAX_V128 to ensure NaN instructions matches real hardware --- src/xenia/cpu/backend/x64/x64_sequences.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/cpu/backend/x64/x64_sequences.cc b/src/xenia/cpu/backend/x64/x64_sequences.cc index fdb436db6..6dfc77a62 100644 --- a/src/xenia/cpu/backend/x64/x64_sequences.cc +++ b/src/xenia/cpu/backend/x64/x64_sequences.cc @@ -570,7 +570,7 @@ struct MAX_V128 : Sequence> { auto src2 = GetInputRegOrConstant(e, i.src2, e.xmm1); e.vmaxps(e.xmm2, src1, src2); e.vmaxps(e.xmm3, src2, src1); - e.vandps(i.dest, e.xmm2, e.xmm3); + e.vorps(i.dest, e.xmm2, e.xmm3); } }; EMITTER_OPCODE_TABLE(OPCODE_MAX, MAX_F32, MAX_F64, MAX_V128);