target-sh4: simplify comparisons after a 'and' op