浏览代码

* 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 -

Jonas Maebe 20 年之前
父节点
当前提交
e14d8e6611
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      compiler/powerpc/aoptcpu.pas

+ 1 - 2
compiler/powerpc/aoptcpu.pas

@@ -260,8 +260,7 @@ Implementation
                (taicpu(p).oper[1]^.typ = top_reg) and
                (taicpu(p).oper[1]^.typ = top_reg) and
                getnextinstruction(p,next1) and
                getnextinstruction(p,next1) and
                (next1.typ = ait_instruction) 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
                // make sure it the result goes to cr0
                (((taicpu(next1).ops = 2) and
                (((taicpu(next1).ops = 2) and
                  (taicpu(next1).oper[1]^.val = 0) and
                  (taicpu(next1).oper[1]^.val = 0) and