diff python/ppci/ir2tree.py @ 394:988f3fb861e4

c3 code generator rewrite
author Windel Bouwman
date Thu, 22 May 2014 08:14:12 +0200
parents c49459768aaa
children 5d03c10fe19d
line wrap: on
line diff
--- a/python/ppci/ir2tree.py	Sat May 17 21:17:40 2014 +0200
+++ b/python/ppci/ir2tree.py	Thu May 22 08:14:12 2014 +0200
@@ -13,6 +13,7 @@
     return reg_f
 
 @register(ir.Binop)
+@register(ir.Add)
 def binop_to_tree(e):
     names = {'+':'ADDI32', '-':'SUBI32', '|':'ORI32', '<<':'SHLI32',
         '*':'MULI32', '&':'ANDI32', '>>':'SHRI32'}