* don't replace cmplwi's with flag-setting variants of integer operations,

as the latter perform a signed comparison with 0

git-svn-id: trunk@1365 -
This commit is contained in:
Jonas Maebe 2005-10-13 07:49:02 +00:00
parent 3f4682400c
commit e14d8e6611

View File

@ -260,8 +260,7 @@ Implementation
(taicpu(p).oper[1]^.typ = top_reg) and
getnextinstruction(p,next1) and
(next1.typ = ait_instruction) and
((taicpu(next1).opcode = A_CMPWI) or
(taicpu(next1).opcode = A_CMPLWI)) and
(taicpu(next1).opcode = A_CMPWI) and
// make sure it the result goes to cr0
(((taicpu(next1).ops = 2) and
(taicpu(next1).oper[1]^.val = 0) and