Mercurial > lcfOS
diff python/ppci/frontends/ks/irgenerator.py @ 106:f2d980eef509
improved code generation
author | Windel Bouwman |
---|---|
date | Mon, 31 Dec 2012 18:26:56 +0100 |
parents | ed230e947dc6 |
children | 1544e7a4aa98 |
line wrap: on
line diff
--- a/python/ppci/frontends/ks/irgenerator.py Mon Dec 31 17:35:17 2012 +0100 +++ b/python/ppci/frontends/ks/irgenerator.py Mon Dec 31 18:26:56 2012 +0100 @@ -42,13 +42,9 @@ elif type(node) is Unop: if node.op == 'INTTOREAL': self.genexprcode(node.a) - node.reg = node.a.reg - # TODO use 'FILD' instruction - freg = 12 code.append('Unop inttoreal TODO') elif node.op == 'ABS': if isType(node.typ, real): - code = [0xD9, 0xE1] # st(0) = fabs st(0) Error('ABS error integer') elif isType(node.typ, integer): code = []