All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] PEXT returns wrong values, seemingly switches arguments
@ 2016-07-20 10:45 Szolnoki Lénárd
  0 siblings, 0 replies; only message in thread
From: Szolnoki Lénárd @ 2016-07-20 10:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: rth

Hi,

I fiddled with BMI2 instructions and discovered that pext instructions
emulated with "qemu-x86_64 -cpu Haswell" return the wrong value. It
seemingly switches up its arguments. I suspect that the error is around the
gen_helper_pext(..) call in target-i386/translate.c. I checked helper_pext
in target-i386/int_helper.c and it works fine.

I ran my program on a CPU with BMI2 instruction set too, and it indeed
returns different values.

I didn't check pdep, it could have the same problem.

Best regards,
Lénárd Szolnoki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-20 10:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-20 10:45 [Qemu-devel] PEXT returns wrong values, seemingly switches arguments Szolnoki Lénárd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.