add test_0_moduw and correct name to trunc_rem
[soc.git] / src / soc / decoder / pseudo / parser.py
index 6446a2df822db8e33b92e80a9863b4522ca21caa..8bdcd86816b6e7ee687f3f5ad38d663adb1eae6a 100644 (file)
@@ -619,7 +619,7 @@ class PowerParser:
                     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: