unicorn/qemu/target
Joseph Myers e883a15231
target/i386: fix pmovsx/pmovzx in-place operations
The SSE4.1 pmovsx* and pmovzx* instructions take packed 1-byte, 2-byte
or 4-byte inputs and sign-extend or zero-extend them to a wider vector
output. The associated helpers for these instructions do the
extension on each element in turn, starting with the lowest. If the
input and output are the same register, this means that all the input
elements after the first have been overwritten before they are read.
This patch makes the helpers extend starting with the highest element,
not the lowest, to avoid such overwriting. This fixes many GCC test
failures (161 in the gcc testsuite in my GCC 6-based testing) when
testing with a default CPU setting enabling those instructions.

Backports commit c6a56c8e990b213a1638af2d34352771d5fa4d9c from qemu
2018-03-04 23:56:01 -05:00
..
arm target/arm: Avoid an extra temporary for store_exclusive 2018-03-04 23:17:50 -05:00
i386 target/i386: fix pmovsx/pmovzx in-place operations 2018-03-04 23:56:01 -05:00
m68k target/m68k: Switch fpu_rom from make_floatx80() to make_floatx80_init() 2018-03-04 23:05:01 -05:00
mips gen-icount: check cflags instead of use_icount global 2018-03-04 14:26:26 -05:00
sparc sparc: Fix typedef clash 2018-03-04 23:05:50 -05:00