]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/ppc: Fix xvxsigdp
authorAnton Blanchard <anton@ozlabs.org>
Tue, 4 Jun 2019 19:01:12 +0000 (20:01 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 17 Sep 2019 20:14:05 +0000 (15:14 -0500)
Fix a typo in xvxsigdp where we put both results into the lower
doubleword.

Fixes: dd977e4f45cb ("target/ppc: Optimize x[sv]xsigdp using deposit_i64()")
Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Message-Id: <20190507004811.29968-1-anton@ozlabs.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
(upstream commit cf4e9363f7fd889d8d804c8f78e8927782c2aa48)
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/ppc/translate/vsx-impl.inc.c

index 1b483fc27eaf68dd032d444e0b7c4afdcdcf270d..96e4ff4411f2965fda092b00c1f9fd37c4959506 100644 (file)
@@ -1819,7 +1819,7 @@ static void gen_xvxsigdp(DisasContext *ctx)
     tcg_gen_movi_i64(t0, 0x0010000000000000);
     tcg_gen_movcond_i64(TCG_COND_EQ, t0, exp, zr, zr, t0);
     tcg_gen_movcond_i64(TCG_COND_EQ, t0, exp, nan, zr, t0);
-    tcg_gen_deposit_i64(xth, t0, xbl, 0, 52);
+    tcg_gen_deposit_i64(xtl, t0, xbl, 0, 52);
     set_cpu_vsrl(xT(ctx->opcode), xtl);
 
     tcg_temp_free_i64(t0);