remove bad hack calling trunc_divs/trunc_mods
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Jul 2020 12:19:17 +0000 (13:19 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Jul 2020 12:19:17 +0000 (13:19 +0100)
see https://bugs.libre-soc.org/show_bug.cgi?id=436

src/soc/decoder/pseudo/parser.py

index 346e3f98a8619d4bd09c810cb72fff84ef049403..3d75fbb059af6b31e61cb9fef1eeb22d2cb10068 100644 (file)
@@ -615,7 +615,8 @@ class PowerParser:
                 l, r = p[1], p[3]
                 # actual call will be "dividend / divisor" - just check
                 # LHS name
-                if isinstance(l, ast.Name) and l.id == 'dividend':
+                # XXX DISABLE BAD HACK (False)
+                if False and isinstance(l, ast.Name) and l.id == 'dividend':
                     if p[2] == '/':
                         fn = 'trunc_divs'
                     else: