mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[JAEGER] Fix backwards comparison on masm.testDouble().
This commit is contained in:
parent
56a7c58d38
commit
22449ee4d8
@ -111,18 +111,18 @@ class Assembler : public BaseAssembler
|
||||
Jump testDouble(Assembler::Condition cond, RegisterID reg) {
|
||||
Assembler::Condition opcond;
|
||||
if (cond == Assembler::Equal)
|
||||
opcond = Assembler::LessThan;
|
||||
else
|
||||
opcond = Assembler::GreaterThanOrEqual;
|
||||
else
|
||||
opcond = Assembler::LessThan;
|
||||
return branch32(opcond, reg, ImmTag(JSVAL_MASK32_CLEAR));
|
||||
}
|
||||
|
||||
Jump testDouble(Assembler::Condition cond, Address address) {
|
||||
Assembler::Condition opcond;
|
||||
if (cond == Assembler::Equal)
|
||||
opcond = Assembler::LessThan;
|
||||
else
|
||||
opcond = Assembler::GreaterThanOrEqual;
|
||||
else
|
||||
opcond = Assembler::LessThan;
|
||||
return branch32(opcond, tagOf(address), ImmTag(JSVAL_MASK32_CLEAR));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user