qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL for-5.0 00/10] tcg patch queue
@ 2020-03-31  3:54 Richard Henderson
  2020-03-31  3:54 ` [PULL for-5.0 01/10] configure: Drop adjustment of textseg Richard Henderson
                   ` (11 more replies)
  0 siblings, 12 replies; 20+ messages in thread
From: Richard Henderson @ 2020-03-31  3:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell

My tcg patch queue, plus one mips patch on request of Aleksander.


r~


The following changes since commit 5acad5bf480321f178866dc28e38eeda5a3f19bb:

  Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging (2020-03-28 00:27:04 +0000)

are available in the Git repository at:

  https://github.com/rth7680/qemu.git tags/pull-tcg-20200330

for you to fetch changes up to b412378785c1bd95e3461c1373dd8938bc54fb4e:

  decodetree: Use Python3 floor division operator (2020-03-30 11:44:04 -0700)

----------------------------------------------------------------
Improve PIE and other linkage
Fix for decodetree vs Python3 floor division operator
Fix i386 INDEX_op_dup2_vec expansion
Fix loongson multimedia condition instructions

----------------------------------------------------------------
Jiaxun Yang (1):
      target/mips: Fix loongson multimedia condition instructions

Philippe Mathieu-Daudé (1):
      decodetree: Use Python3 floor division operator

Richard Henderson (8):
      configure: Drop adjustment of textseg
      tcg: Remove softmmu code_gen_buffer fixed address
      configure: Do not force pie=no for non-x86
      configure: Always detect -no-pie toolchain support
      configure: Unnest detection of -z,relro and -z,now
      configure: Override the os default with --disable-pie
      configure: Support -static-pie if requested
      tcg/i386: Fix INDEX_op_dup2_vec

 configure                 | 116 +++++++++++++---------------------------------
 Makefile                  |   2 +-
 accel/tcg/translate-all.c |  37 ++-------------
 target/mips/translate.c   |  35 ++++++++++++--
 tcg/i386/tcg-target.inc.c |  10 ++--
 scripts/decodetree.py     |   4 +-
 6 files changed, 78 insertions(+), 126 deletions(-)


^ permalink raw reply	[flat|nested] 20+ messages in thread
* [PATCH for-5.0] tcg/i386: Fix INDEX_op_dup2_vec
@ 2020-03-30 18:43 Richard Henderson
  0 siblings, 0 replies; 20+ messages in thread
From: Richard Henderson @ 2020-03-30 18:43 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-stable

We were only constructing the 64-bit element, and not
replicating the 64-bit element across the rest of the vector.

Cc: qemu-stable@nongnu.org
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---

This bug is visible running RISU for aarch64 on x86_32.


r~

---
 tcg/i386/tcg-target.inc.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c
index 223dba9c8c..7f61eeedd0 100644
--- a/tcg/i386/tcg-target.inc.c
+++ b/tcg/i386/tcg-target.inc.c
@@ -2855,9 +2855,13 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,
         goto gen_simd;
 #if TCG_TARGET_REG_BITS == 32
     case INDEX_op_dup2_vec:
-        /* Constraints have already placed both 32-bit inputs in xmm regs.  */
-        insn = OPC_PUNPCKLDQ;
-        goto gen_simd;
+        /* First merge the two 32-bit inputs to a single 64-bit element. */
+        tcg_out_vex_modrm(s, OPC_PUNPCKLDQ, a0, a1, a2);
+        /* Then replicate the 64-bit elements across the rest of the vector. */
+        if (type != TCG_TYPE_V64) {
+            tcg_out_dup_vec(s, type, MO_64, a0, a0);
+        }
+        break;
 #endif
     case INDEX_op_abs_vec:
         insn = abs_insn[vece];
-- 
2.20.1



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

end of thread, other threads:[~2020-03-31 15:05 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-31  3:54 [PULL for-5.0 00/10] tcg patch queue Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 01/10] configure: Drop adjustment of textseg Richard Henderson
2020-03-31  3:54 ` [PATCH for-5.0] tcg/i386: Fix INDEX_op_dup2_vec Richard Henderson
2020-03-31  8:14   ` no-reply
2020-03-31  3:54 ` [PULL for-5.0 02/10] tcg: Remove softmmu code_gen_buffer fixed address Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 03/10] configure: Do not force pie=no for non-x86 Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 04/10] configure: Always detect -no-pie toolchain support Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 05/10] configure: Unnest detection of -z, relro and -z, now Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 06/10] configure: Override the os default with --disable-pie Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 07/10] configure: Support -static-pie if requested Richard Henderson
2020-03-31 13:34   ` Laurent Vivier
2020-03-31 13:44     ` Laurent Vivier
2020-03-31 14:29       ` Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 08/10] target/mips: Fix loongson multimedia condition instructions Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 09/10] tcg/i386: Fix INDEX_op_dup2_vec Richard Henderson
2020-03-31  3:54 ` [PULL for-5.0 10/10] decodetree: Use Python3 floor division operator Richard Henderson
2020-03-31 12:20 ` [PULL for-5.0 00/10] tcg patch queue Peter Maydell
2020-03-31 12:53   ` Alex Bennée
2020-03-31 15:02     ` Philippe Mathieu-Daudé
  -- strict thread matches above, loose matches on Subject: below --
2020-03-30 18:43 [PATCH for-5.0] tcg/i386: Fix INDEX_op_dup2_vec Richard Henderson

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).