From 002aaab77de4a988c18c6fc6833089fbff8db2bf Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Fri, 30 May 2014 22:36:06 -0700 Subject: [PATCH] Fixing VECTOR_COMPARE_SGE. --- src/alloy/backend/x64/x64_sequences.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/alloy/backend/x64/x64_sequences.cc b/src/alloy/backend/x64/x64_sequences.cc index 438e1d2d9..84e265592 100644 --- a/src/alloy/backend/x64/x64_sequences.cc +++ b/src/alloy/backend/x64/x64_sequences.cc @@ -2469,18 +2469,18 @@ EMITTER(VECTOR_COMPARE_SGE_V128, MATCH(I, V128 [&i](X64Emitter& e, Xmm dest, Xmm src1, Xmm src2) { switch (i.instr->flags) { case INT8_TYPE: - e.vpcmpgtb(dest, src1, src2); e.vpcmpeqb(e.xmm0, src1, src2); + e.vpcmpgtb(dest, src1, src2); e.vpor(dest, e.xmm0); break; case INT16_TYPE: - e.vpcmpgtw(dest, src1, src2); e.vpcmpeqw(e.xmm0, src1, src2); + e.vpcmpgtw(dest, src1, src2); e.vpor(dest, e.xmm0); break; case INT32_TYPE: - e.vpcmpgtd(dest, src1, src2); e.vpcmpeqd(e.xmm0, src1, src2); + e.vpcmpgtd(dest, src1, src2); e.vpor(dest, e.xmm0); break; case FLOAT32_TYPE: