From 31766eaf8d9c82b7d00d0a2285aed1db1ad79694 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 5 Mar 2017 18:06:39 -0600 Subject: [PATCH] JIT: oops --- src/xenia/cpu/backend/x64/x64_sequences.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xenia/cpu/backend/x64/x64_sequences.cc b/src/xenia/cpu/backend/x64/x64_sequences.cc index 9c2567582..dc642603d 100644 --- a/src/xenia/cpu/backend/x64/x64_sequences.cc +++ b/src/xenia/cpu/backend/x64/x64_sequences.cc @@ -1430,9 +1430,9 @@ struct CONVERT_I32_F32 static void Emit(X64Emitter& e, const EmitArgType& i) { // TODO(benvanik): saturation check? cvtt* (trunc?) if (i.instr->flags == ROUND_TO_ZERO) { - e.vcvttss2si(i.dest, e.xmm0); + e.vcvttss2si(i.dest, i.src1); } else { - e.vcvtss2si(i.dest, e.xmm0); + e.vcvtss2si(i.dest, i.src1); } } }; @@ -1455,9 +1455,9 @@ struct CONVERT_I64_F64 static void Emit(X64Emitter& e, const EmitArgType& i) { // TODO(benvanik): saturation check? cvtt* (trunc?) if (i.instr->flags == ROUND_TO_ZERO) { - e.vcvttsd2si(i.dest, e.xmm0); + e.vcvttsd2si(i.dest, i.src1); } else { - e.vcvtsd2si(i.dest, e.xmm0); + e.vcvtsd2si(i.dest, i.src1); } } };