diff test/testcg.py @ 335:582a1aaa3983

Added long branch format
author Windel Bouwman
date Mon, 17 Feb 2014 20:41:30 +0100
parents 44f336460c2a
children 4d204f6f7d4e
line wrap: on
line diff
--- a/test/testcg.py	Thu Feb 13 22:02:08 2014 +0100
+++ b/test/testcg.py	Mon Feb 17 20:41:30 2014 +0100
@@ -18,7 +18,7 @@
         self.cg = CodeGenerator(armtarget)
 
     def testFunction(self):
-        s = outstream.OutputStream()
+        s = outstream.BinaryOutputStream(ppci.objectfile.ObjectFile())
         m, f, bb = genTestFunction()
         bb.addInstruction(ir.Exp(ir.Const(123)))
         bb.addInstruction(ir.Jump(f.epiloog))
@@ -28,7 +28,7 @@
 
 class testArmCodeGeneration(unittest.TestCase):
     def testStack(self):
-        s = outstream.OutputStream()
+        s = outstream.BinaryOutputStream(ppci.objectfile.ObjectFile())
         cg = CodeGenerator(armtarget)
         m, f, bb = genTestFunction()
         bb.addInstruction(ir.Move(ir.Mem(ir.Const(1)), ir.Const(22)))