diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-08-25 18:47:50 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-01 08:37:04 +0200 |
commit | bf30ad8cefeb3b199f5485c5d78f2801cd248264 (patch) | |
tree | c557ab9696f23b3e3363c857e8d724d3221b74d2 /include/qemu/plugin-memory.h | |
parent | 75046ad72eaaae954849e2b793b6f629befb4ebc (diff) | |
download | qemu-bf30ad8cefeb3b199f5485c5d78f2801cd248264.zip qemu-bf30ad8cefeb3b199f5485c5d78f2801cd248264.tar.gz qemu-bf30ad8cefeb3b199f5485c5d78f2801cd248264.tar.bz2 |
target/i386: DPPS rounding fix
The DPPS (Dot Product) instruction is defined to first sum pairs of
intermediate results, then sum those values to get the final result.
i.e. (A+B)+(C+D)
We incrementally sum the results, i.e. ((A+B)+C)+D, which can result
in incorrect rouding.
For consistency, also change the variable names to the ones used
in the Intel SDM and implement DPPD following the manual.
Based on a patch by Paul Brook <paul@nowt.org>.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/plugin-memory.h')
0 files changed, 0 insertions, 0 deletions