Backed out changeset aa9a0b34bbd8 (bug 878435) for checktest failures.

This commit is contained in:
Ryan VanderMeulen 2013-06-07 10:43:33 -04:00
parent 677b915d13
commit 289a9dd76e
2 changed files with 1 additions and 12 deletions

View File

@ -3985,7 +3985,7 @@ CheckComparison(FunctionCompiler &f, ParseNode *comp, MDefinition **def, Type *t
return false;
if ((lhsType.isSigned() && rhsType.isSigned()) || (lhsType.isUnsigned() && rhsType.isUnsigned())) {
MCompare::CompareType compareType = (lhsType.isUnsigned() && rhsType.isUnsigned())
MCompare::CompareType compareType = lhsType.isUnsigned()
? MCompare::Compare_UInt32
: MCompare::Compare_Int32;
*def = f.compare(lhsDef, rhsDef, comp->getOp(), compareType);

View File

@ -1,11 +0,0 @@
function g()
{
"use asm";
function f()
{
return (0 > (0x80000000 | 0)) | 0;
}
return f;
}
assertEq(g()(), (0 > (0x80000000 | 0)) | 0);