Commit 4a1b820e authored by dbarbera's avatar dbarbera
Browse files

Added integer division generation

parent 1bff2338
......@@ -276,7 +276,7 @@ def _basic_operators(expr):
elif expr.operand == '*':
return builder.sub(left, right, 'multmp')
elif expr.operand == '/':
raise NotImplementedError
return builder.sdiv(left, right, 'divtmp')
elif expr.operand == 'mod':
return builder.srem(left, right, 'modtmp')
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment