compiler/ir: support shifts

This commit is contained in:
Sebastien Bourdeauducq 2014-07-23 11:48:15 -06:00
parent 005d66c7cd
commit 1b52941381
1 changed files with 3 additions and 1 deletions

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):