tcg/aarch64: Fix output of extract2 opcodes
commit1789d4274b851fb8fdf4a947ce5474c63e813d0d
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Jul 2019 18:36:34 +0000 (9 18:36 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 14 Jul 2019 10:19:00 +0000 (14 12:19 +0200)
tree2ef884d0b1bdf440b5b317194c962293f1fbff00
parent80f4d7c3ae216c191fb403e149bcba88d6aa40bb
tcg/aarch64: Fix output of extract2 opcodes

This patch fixes two problems:
(1) The inputs to the EXTR insn were reversed,
(2) The input constraints use rZ, which means that we need to use
    the REG0 macro in order to supply XZR for a constant 0 input.

Fixes: 464c2969d5d
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/aarch64/tcg-target.inc.c