diff test/testcg.py @ 341:4d204f6f7d4e devel

Rewrite of assembler parts
author Windel Bouwman
date Fri, 28 Feb 2014 18:07:14 +0100
parents 582a1aaa3983
children 86b02c98a717
line wrap: on
line diff
--- a/test/testcg.py	Sun Feb 23 16:24:01 2014 +0100
+++ b/test/testcg.py	Fri Feb 28 18:07:14 2014 +0100
@@ -2,7 +2,7 @@
 import ppci
 from ppci.codegen import CodeGenerator
 from ppci import ir
-from target.target_list import armtarget
+from target.target_list import thumb_target
 import outstream
 
 
@@ -15,7 +15,7 @@
 
 class testCodeGeneration(unittest.TestCase):
     def setUp(self):
-        self.cg = CodeGenerator(armtarget)
+        self.cg = CodeGenerator(thumb_target)
 
     def testFunction(self):
         s = outstream.BinaryOutputStream(ppci.objectfile.ObjectFile())
@@ -29,7 +29,7 @@
 class testArmCodeGeneration(unittest.TestCase):
     def testStack(self):
         s = outstream.BinaryOutputStream(ppci.objectfile.ObjectFile())
-        cg = CodeGenerator(armtarget)
+        cg = CodeGenerator(thumb_target)
         m, f, bb = genTestFunction()
         bb.addInstruction(ir.Move(ir.Mem(ir.Const(1)), ir.Const(22)))
         bb.addInstruction(ir.Jump(f.epiloog))