From 05081fa030c8c429b807a0e883c1341872bba2ae Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 24 May 2015 16:18:06 -0500 Subject: [PATCH] Fixed some constant loads. --- src/xenia/cpu/backend/x64/x64_sequences.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/backend/x64/x64_sequences.cc b/src/xenia/cpu/backend/x64/x64_sequences.cc index 194da6792..06a9146ef 100644 --- a/src/xenia/cpu/backend/x64/x64_sequences.cc +++ b/src/xenia/cpu/backend/x64/x64_sequences.cc @@ -2573,7 +2573,7 @@ EMITTER(VECTOR_COMPARE_UGT_V128, MATCH(I, V128 } if (i.src2.is_constant) { // TODO(benvanik): make this constant. - e.LoadConstantXmm(e.xmm1, i.src1.constant()); + e.LoadConstantXmm(e.xmm1, i.src2.constant()); e.vpxor(e.xmm1, sign_addr); } else { e.vpxor(e.xmm1, i.src2, sign_addr); @@ -2628,7 +2628,7 @@ EMITTER(VECTOR_COMPARE_UGE_V128, MATCH(I, V128 } if (i.src2.is_constant) { // TODO(benvanik): make this constant. - e.LoadConstantXmm(e.xmm1, i.src1.constant()); + e.LoadConstantXmm(e.xmm1, i.src2.constant()); e.vpxor(e.xmm1, sign_addr); } else { e.vpxor(e.xmm1, i.src2, sign_addr);