diff python/target/arminstructionselector.py @ 316:56e6ff84f646

Fixed burn led demo
author Windel Bouwman
date Sat, 21 Dec 2013 13:13:26 +0100
parents 0615b5308710
children e84047f29c78
line wrap: on
line diff
--- a/python/target/arminstructionselector.py	Sat Dec 21 10:03:01 2013 +0100
+++ b/python/target/arminstructionselector.py	Sat Dec 21 13:13:26 2013 +0100
@@ -45,14 +45,14 @@
             b = self.munchExpr(e.b)
             d = self.newTmp()
             self.move(d, a)
-            self.emit(Orr, dst=[], src=[b, d])
+            self.emit(Orr, dst=[], src=[d, b])
             return d
         elif isinstance(e, ir.Binop) and e.operation == '<<':
             a = self.munchExpr(e.a)
             b = self.munchExpr(e.b)
             d = self.newTmp()
             self.move(d, a)
-            self.emit(Lsl, dst=[], src=[b, d]) # TODO: is d a source variable?
+            self.emit(Lsl, dst=[], src=[d, b]) # TODO: is d a source variable?
             return d
         elif isinstance(e, ir.Binop) and e.operation == '*':
             a = self.munchExpr(e.a)