diff test/testarmasm.py @ 340:c7cc54c0dfdf devel

Test featurebranch
author Windel Bouwman
date Sun, 23 Feb 2014 16:24:01 +0100
parents 582a1aaa3983
children 4d204f6f7d4e
line wrap: on
line diff
--- a/test/testarmasm.py	Fri Feb 21 13:35:07 2014 +0100
+++ b/test/testarmasm.py	Sun Feb 23 16:24:01 2014 +0100
@@ -6,7 +6,7 @@
 from target.target_list import armtarget
 
 
-class AssemblerARMTestCase(AsmTestCaseBase):
+class AssemblerArmThumb2TestCase(AsmTestCaseBase):
     def setUp(self):
         self.t = armtarget
         self.obj = ObjectFile()
@@ -149,3 +149,20 @@
         self.feed('bne henkie')
         self.feed('b henkie')
         self.check('32b41519 94420198 049332bc a340ab42 f6d0f5d1 f4e7')
+
+
+class AssemblerArmTestCase(AsmTestCaseBase):
+    """ ARM-mode (not thumb-mode) instruction assembly test case """
+    def setUp(self):
+        self.t = arm_arm_target
+        self.obj = ObjectFile()
+        self.o = outstream.BinaryOutputStream(self.obj)
+        self.o.selectSection('.text')
+        self.a = Assembler(target=self.t, stream=self.o)
+
+    def testMapOperand(self):
+        pass
+
+    def testMovImm(self):
+        self.feed('mov r4, 100')
+        self.check('6440a0e3')