From f55bb58c78ca3f82e89d0571b7b9541b983d2333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Fri, 15 Mar 2019 06:46:21 +0100 Subject: Extend move_shift to accept a literal Src operand --- erts/emulator/beam/ops.tab | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'erts/emulator/beam/ops.tab') diff --git a/erts/emulator/beam/ops.tab b/erts/emulator/beam/ops.tab index 62c2e8ef8a..d60e6d6b53 100644 --- a/erts/emulator/beam/ops.tab +++ b/erts/emulator/beam/ops.tab @@ -378,13 +378,12 @@ move_dup x x x # move_shift -move SD=x D=x | move Src=xy SD=x | distinct(D, Src) => move_shift Src SD D +move SD=x D=x | move Src=cxy SD=x | distinct(D, Src) => move_shift Src SD D move SD=y D=x | move Src=x SD=y | distinct(D, Src) => move_shift Src SD D move SD=x D=y | move Src=x SD=x | distinct(D, Src) => move_shift Src SD D move SD=x==0 D=y | move Src=y SD=x==0 | distinct(D, Src) => move_shift Src SD D -move_shift x x x -move_shift y x x +move_shift cxy x x move_shift x y x move_shift x x y move_shift y r y -- cgit v1.2.3