Mercurial > lcfOS
diff python/ppci/target/arm/selector.py @ 352:899ae3aea803
First kernel run for vexpressA9
author | Windel Bouwman |
---|---|
date | Sun, 09 Mar 2014 11:55:55 +0100 |
parents | 3bb7dcfe5529 |
children | 42343d189e14 |
line wrap: on
line diff
--- a/python/ppci/target/arm/selector.py Sat Mar 08 16:46:51 2014 +0100 +++ b/python/ppci/target/arm/selector.py Sun Mar 09 11:55:55 2014 +0100 @@ -2,7 +2,7 @@ from ppci.irmach import AbstractInstruction as makeIns from ppci.ir2tree import makeTree from .instructions import Str1, Mov2 -from .instructions import B, Bl, Blt, Bgt, Beq +from .instructions import B, Bl, Blt, Bgt, Beq, Bne, Cmp2 import pyburg from ..basetarget import Nop from ..instructionselector import InstructionSelector @@ -75,7 +75,7 @@ elif isinstance(s, ir.CJump): a = self.munchExpr(s.a) b = self.munchExpr(s.b) - self.emit(Cmp, src=[a, b]) + self.emit(Cmp2, src=[a, b]) ntgt = self.targets[s.lab_no] ytgt = self.targets[s.lab_yes] jmp_ins = makeIns(B(ir.label_name(s.lab_no)), jumps=[ntgt])