Skip to content
Snippets Groups Projects
Commit bb1f3ba0 authored by Jayke Meijer's avatar Jayke Meijer
Browse files

Added unittests for move-instruction.

parent 4a51527e
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ class TestOptimize(unittest.TestCase): ...@@ -28,7 +28,7 @@ class TestOptimize(unittest.TestCase):
optimize_global(block) optimize_global(block)
self.assertEquals(block.statements, [foo, move, bar]) self.assertEquals(block.statements, [foo, move, bar])
def test_optimize_global_movinst(self): def test_optimize_global_movinst_true(self):
foo = S('command', 'foo') foo = S('command', 'foo')
bar = S('command', 'bar') bar = S('command', 'bar')
...@@ -41,7 +41,7 @@ class TestOptimize(unittest.TestCase): ...@@ -41,7 +41,7 @@ class TestOptimize(unittest.TestCase):
S('command', 'addu', '$regA', '$regB', 2), S('command', 'addu', '$regA', '$regB', 2),
bar]) bar])
def test_optimize_global_movinst(self): def test_optimize_global_movinst_false(self):
foo = S('command', 'foo') foo = S('command', 'foo')
bar = S('command', 'bar') bar = S('command', 'bar')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment