mirror of https://github.com/m-labs/artiq.git
compiler/ir: support shifts
This commit is contained in:
parent
005d66c7cd
commit
1b52941381
|
@ -27,7 +27,9 @@ _binop_to_builder = {
|
||||||
ast.Sub: "sub",
|
ast.Sub: "sub",
|
||||||
ast.Mult: "mul",
|
ast.Mult: "mul",
|
||||||
ast.FloorDiv: "sdiv",
|
ast.FloorDiv: "sdiv",
|
||||||
ast.Mod: "srem"
|
ast.Mod: "srem",
|
||||||
|
ast.LShift: "shl",
|
||||||
|
ast.RShift: "ashr"
|
||||||
}
|
}
|
||||||
|
|
||||||
def _emit_expr(env, builder, ns, node):
|
def _emit_expr(env, builder, ns, node):
|
||||||
|
|
Loading…
Reference in New Issue