aboutsummaryrefslogtreecommitdiff
path: root/target/i386/ops_sse_header.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-09-18 09:52:24 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-09-19 15:16:00 +0200
commitca4b1b43bc5ac25c56a3a7a4a2252d6fdc8dcf02 (patch)
treedc74ed91f4801fe548cf36d1476f5b4f224c2b9d /target/i386/ops_sse_header.h
parent034668c329bb3e257a1f259571bd462938522e7a (diff)
downloadqemu-ca4b1b43bc5ac25c56a3a7a4a2252d6fdc8dcf02.zip
qemu-ca4b1b43bc5ac25c56a3a7a4a2252d6fdc8dcf02.tar.gz
qemu-ca4b1b43bc5ac25c56a3a7a4a2252d6fdc8dcf02.tar.bz2
target/i386: fix INSERTQ implementation
INSERTQ is defined to not modify any bits in the lower 64 bits of the destination, other than the ones being replaced with bits from the source operand. QEMU instead is using unshifted bits from the source for those bits. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/ops_sse_header.h')
-rw-r--r--target/i386/ops_sse_header.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/ops_sse_header.h b/target/i386/ops_sse_header.h
index d99464a..400b24c0 100644
--- a/target/i386/ops_sse_header.h
+++ b/target/i386/ops_sse_header.h
@@ -193,7 +193,7 @@ DEF_HELPER_3(rcpss, void, env, ZMMReg, ZMMReg)
DEF_HELPER_3(extrq_r, void, env, ZMMReg, ZMMReg)
DEF_HELPER_4(extrq_i, void, env, ZMMReg, int, int)
DEF_HELPER_3(insertq_r, void, env, ZMMReg, ZMMReg)
-DEF_HELPER_4(insertq_i, void, env, ZMMReg, int, int)
+DEF_HELPER_5(insertq_i, void, env, ZMMReg, ZMMReg, int, int)
DEF_HELPER_3(glue(haddps, SUFFIX), void, env, ZMMReg, ZMMReg)
DEF_HELPER_3(glue(haddpd, SUFFIX), void, env, ZMMReg, ZMMReg)
DEF_HELPER_3(glue(hsubps, SUFFIX), void, env, ZMMReg, ZMMReg)