qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tcg/aarch64: Fix output of extract2 opcodes
@ 2019-07-09 18:48 Richard Henderson
  2019-07-10  9:22 ` Aleksandar Markovic
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Richard Henderson @ 2019-07-09 18:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, beata.michalska

The aarch64 argument ordering for the operands is big-endian,
whereas the tcg argument ordering is little-endian.  Use REG0
so that we honor the rZ constraints.

Fixes: 464c2969d5d
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 tcg/aarch64/tcg-target.inc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c
index b0f8106642..0713448bf5 100644
--- a/tcg/aarch64/tcg-target.inc.c
+++ b/tcg/aarch64/tcg-target.inc.c
@@ -2226,7 +2226,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
 
     case INDEX_op_extract2_i64:
     case INDEX_op_extract2_i32:
-        tcg_out_extr(s, ext, a0, a1, a2, args[3]);
+        tcg_out_extr(s, ext, a0, REG0(2), REG0(1), args[3]);
         break;
 
     case INDEX_op_add2_i32:
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-07-11 17:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-09 18:48 [Qemu-devel] [PATCH] tcg/aarch64: Fix output of extract2 opcodes Richard Henderson
2019-07-10  9:22 ` Aleksandar Markovic
2019-07-10  9:48   ` Richard Henderson
2019-07-10 10:04     ` Aleksandar Markovic
2019-07-10 15:40   ` Peter Maydell
2019-07-10 17:28     ` Aleksandar Markovic
2019-07-10 10:22 ` Philippe Mathieu-Daudé
2019-07-10 10:42 ` Alex Bennée
2019-07-10 18:12 ` Aleksandar Markovic
2019-07-11 11:45   ` Richard Henderson
2019-07-11 17:06     ` Aleksandar Markovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).