2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

compiler/ir: support shifts

This commit is contained in:
Sebastien Bourdeauducq 2014-07-23 11:48:15 -06:00
parent 005d66c7cd
commit 1b52941381

View File

@ -27,7 +27,9 @@ _binop_to_builder = {
ast.Sub: "sub",
ast.Mult: "mul",
ast.FloorDiv: "sdiv",
ast.Mod: "srem"
ast.Mod: "srem",
ast.LShift: "shl",
ast.RShift: "ashr"
}
def _emit_expr(env, builder, ns, node):