mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 869525 - Use xor+setCC instead of setCC+movzbl when convenient. r=nbp
This commit is contained in:
parent
8a04bf8e38
commit
6851254335
@ -23,9 +23,9 @@ ICCompare_Double::Compiler::generateStubCode(MacroAssembler &masm)
|
||||
Register dest = R0.scratchReg();
|
||||
|
||||
Assembler::DoubleCondition cond = JSOpToDoubleCondition(op);
|
||||
masm.xorl(dest, dest);
|
||||
masm.compareDouble(cond, FloatReg0, FloatReg1);
|
||||
masm.setCC(Assembler::ConditionFromDoubleCondition(cond), dest);
|
||||
masm.movzxbl(dest, dest);
|
||||
|
||||
// Check for NaN, if needed.
|
||||
Assembler::NaNCond nanCond = Assembler::NaNCondFromDoubleCondition(cond);
|
||||
|
Loading…
Reference in New Issue
Block a user