Optimize for the 0 case when op1 != op2

This commit is contained in:
gdkchan 2018-08-04 20:33:21 -03:00
parent e94947c7db
commit c9cd32602e

View file

@ -304,7 +304,7 @@ namespace ChocolArm64.Instruction
return op1;
}
if (op1 <= op2 && op2 != 0)
if (op1 < op2 || (op1 == op2 && op2 != 0))
{
return op2;
}
@ -335,7 +335,7 @@ namespace ChocolArm64.Instruction
return op1;
}
if (op1 <= op2 && op2 != 0)
if (op1 < op2 || (op1 == op2 && op2 != 0))
{
return op2;
}
@ -400,7 +400,7 @@ namespace ChocolArm64.Instruction
return op1;
}
if (op1 >= op2 && op2 != 0)
if (op1 > op2 || (op1 == op2 && op2 != 0))
{
return op2;
}
@ -431,7 +431,7 @@ namespace ChocolArm64.Instruction
return op1;
}
if (op1 >= op2 && op2 != 0)
if (op1 > op2 || (op1 == op2 && op2 != 0))
{
return op2;
}