Bug 517405 - nanojit: don't compute x86 FP conditions twice(!). r=rreitmai.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 04 Nov 2009 16:44:13 +1100
changeset 34578 04014b5682092e2bcf52a405a1ab91e833c3ea75
parent 34577 6b96e43a6dd3168a739f7dc342b16710c28c82e8
child 34579 f0d5ea88d07f0359674e4a47a0d06f699caa3df2
push idunknown
push userunknown
push dateunknown
reviewersrreitmai
bugs517405
milestone1.9.3a1pre
Bug 517405 - nanojit: don't compute x86 FP conditions twice(!). r=rreitmai.
js/src/nanojit/Nativei386.cpp
--- a/js/src/nanojit/Nativei386.cpp
+++ b/js/src/nanojit/Nativei386.cpp
@@ -765,22 +765,16 @@ namespace nanojit
         }
     }
 
     void Assembler::asm_fcond(LInsp ins)
     {
         // only want certain regs
         Register r = prepResultReg(ins, AllowableFlagRegs);
         asm_setcc(r, ins);
-
-        // SETcc only sets low 8 bits, so extend
-        MOVZX8(r,r);
-        SETNP(r);
-
-        asm_fcmp(ins);
     }
 
     void Assembler::asm_cond(LInsp ins)
     {
         // only want certain regs
         LOpcode op = ins->opcode();
         Register r = prepResultReg(ins, AllowableFlagRegs);
         // SETcc only sets low 8 bits, so extend