summaryrefslogtreecommitdiff
path: root/usr.bin/oasm/emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/oasm/emit.c')
-rw-r--r--usr.bin/oasm/emit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/oasm/emit.c b/usr.bin/oasm/emit.c
index 63f716a..099f0b2 100644
--- a/usr.bin/oasm/emit.c
+++ b/usr.bin/oasm/emit.c
@@ -402,6 +402,14 @@ emit_encode_bitw(struct emit_state *state, struct oasm_token *tok)
opcode = OSMX64_XOR;
inst_str = "xor";
break;
+ case TT_LSR:
+ opcode = OSMX64_LSR;
+ inst_str = "lsr";
+ break;
+ case TT_LSL:
+ opcode = OSMX64_LSL;
+ inst_str = "lsl";
+ break;
}
/* Next token should be a register */
@@ -532,6 +540,8 @@ emit_process(struct oasm_state *oasm, struct emit_state *emit)
case TT_AND:
case TT_OR:
case TT_XOR:
+ case TT_LSR:
+ case TT_LSL:
curtok = emit_encode_bitw(emit, curtok);
break;
case TT_BR: