Fix rlwimi by reordering the inputs *again*
authorMichael Nolan <mtnolan2640@gmail.com>
Mon, 11 May 2020 14:28:28 +0000 (10:28 -0400)
committerMichael Nolan <mtnolan2640@gmail.com>
Mon, 11 May 2020 14:28:28 +0000 (10:28 -0400)
src/soc/alu/test/test_pipe_caller.py

index 9d44730d07418f0c254c41f7be8605ce6f69c05e..faad0eb5ae200b85a81ce181ceebadf23f313e7c 100644 (file)
@@ -26,14 +26,14 @@ def get_rec_width(rec):
 
 def set_alu_inputs(alu, dec2, sim):
     inputs = []
-    reg1_ok = yield dec2.e.read_reg1.ok
-    if reg1_ok:
-        reg1_sel = yield dec2.e.read_reg1.data
-        inputs.append(sim.gpr(reg1_sel).value)
     reg3_ok = yield dec2.e.read_reg3.ok
     if reg3_ok:
         reg3_sel = yield dec2.e.read_reg3.data
         inputs.append(sim.gpr(reg3_sel).value)
+    reg1_ok = yield dec2.e.read_reg1.ok
+    if reg1_ok:
+        reg1_sel = yield dec2.e.read_reg1.data
+        inputs.append(sim.gpr(reg1_sel).value)
     reg2_ok = yield dec2.e.read_reg2.ok
     if reg2_ok:
         reg2_sel = yield dec2.e.read_reg2.data
@@ -189,7 +189,6 @@ class ALUTestCase(FHDLTestCase):
             with Program(lst) as program:
                 sim = self.run_tst_program(program, initial_regs)
 
-    @unittest.skip("broken")
     def test_rlwimi(self):
         lst = ["rlwimi 3, 1, 5, 20, 6"]
         initial_regs = [0] * 32