target-sh4: simplify comparisons after a 'and' op
commit6f396c8f38fb47dda5622880f7f2c646b145bc23
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 14 Jan 2011 19:39:18 +0000 (14 20:39 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 14 Jan 2011 19:39:18 +0000 (14 20:39 +0100)
tree6b6f0d20a830b2eed17cefc07d424f3fbc8aa72e
parent4f6493ff8a73bbb24ad81b080cc256c1c896b7fb
target-sh4: simplify comparisons after a 'and' op

When a TCG variable is anded with a value and the compared with the same
value, we can simply invert the comparison and compare it with 0. The
generated code is smaller.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/translate.c