comparison python/testcg.py @ 243:ef683881c64e

Remove various files
author Windel Bouwman
date Tue, 23 Jul 2013 16:50:02 +0200
parents 6259856841a0
children 5ec7580976d9
comparison
equal deleted inserted replaced
242:c94965418684 243:ef683881c64e
23 bb.addInstruction(ir.ImmLoad(v, 123)) 23 bb.addInstruction(ir.ImmLoad(v, 123))
24 m.check() 24 m.check()
25 obj = self.cg.generate(m) 25 obj = self.cg.generate(m)
26 self.assertTrue(obj) 26 self.assertTrue(obj)
27 27
28
28 class testArmCodeGeneration(unittest.TestCase): 29 class testArmCodeGeneration(unittest.TestCase):
29 def testStack(self): 30 def testStack(self):
30 s = outstream.OutputStream() 31 s = outstream.OutputStream()
31 cg = codegenarm.ArmCodeGenerator(s) 32 cg = codegenarm.ArmCodeGenerator(s)
32 m, bb = genTestFunction() 33 m, bb = genTestFunction()
35 v2 = ir.Value('tst2') 36 v2 = ir.Value('tst2')
36 bb.addInstruction(ir.ImmLoad(v2, 22)) 37 bb.addInstruction(ir.ImmLoad(v2, 22))
37 bb.addInstruction(ir.Store(v, v2)) 38 bb.addInstruction(ir.Store(v, v2))
38 m.check() 39 m.check()
39 cg.generate(m) 40 cg.generate(m)
40 s.dump() 41 #s.dump()
41 42
42 if __name__ == '__main__': 43 if __name__ == '__main__':
43 unittest.main() 44 unittest.main()
45