if p[2] == '/':
                         fn = 'trunc_div'
                     else:
-                        fn = 'trunc_mod'
+                        fn = 'trunc_rem'
                     # return "function trunc_xxx(l, r)"
                     p[0] =  ast.Call(ast.Name(fn, ast.Load()), (l, r), [])
                 else:
 
         with Program(lst) as program:
             self.run_tst_program(program, [1, 2, 3])
 
+    def test_0_moduw(self):
+        lst = ["addi 1, 0, 0x5678",
+               "addi 2, 0, 0x1234",
+               "moduw  3, 1, 2",
+               ]
+        with Program(lst) as program:
+            self.run_tst_program(program, [1, 2, 3])
+
     def run_tst_program(self, prog, initial_regs=None, initial_sprs=None,
                                     initial_mem=None):
         initial_regs = [0] * 32