diff --git a/artiq/compiler/ir.py b/artiq/compiler/ir.py index d31d2f1ea..636757445 100644 --- a/artiq/compiler/ir.py +++ b/artiq/compiler/ir.py @@ -28,8 +28,12 @@ _binop_to_builder = { ast.Mult: "mul", ast.FloorDiv: "sdiv", ast.Mod: "srem", + ast.LShift: "shl", - ast.RShift: "ashr" + ast.RShift: "ashr", + + ast.BitAnd: "and_", + ast.BitOr: "or_", } def _emit_expr(env, builder, ns, node):