add mtspr and bcctrl instructions to helloworld test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Jul 2020 16:18:51 +0000 (17:18 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Jul 2020 16:18:51 +0000 (17:18 +0100)
src/soc/simulator/test_helloworld_sim.py

index 93352c41b7073afcb608865802ada91fc8decf36..97d1e9983f3faea504fcb3c5c3ef73f5ee88f08f 100644 (file)
@@ -35,6 +35,8 @@ class HelloTestCases(FHDLTestCase):
                 "rldicr  12,12,32,31",
                 "oris    12,12,0",
                 "ori     12,12,4116",
+                "mtspr   9, 12",     # mtctr r12
+                "bcctrl  20,0,0", # bctrl
                 ]
         self.run_tst_program(Program(lst), [1,12])