]> git.ipfire.org Git - thirdparty/valgrind.git/commit
PPC64, Fix bug in vperm instruction.
authorCarl Love <cel@us.ibm.com>
Tue, 3 Oct 2017 15:49:48 +0000 (10:49 -0500)
committerCarl Love <carll@us.ibm.com>
Tue, 3 Oct 2017 20:19:53 +0000 (15:19 -0500)
commitf0c4da68ca9e8c99f55965d8e074273a33ab916d
tree7995ca6d30cef3d262ddb0b0b36c7e57eb617e9f
parentb0aef250a74804423341b3ce804355037211e330
PPC64, Fix bug in vperm instruction.

The ISA says:

Let the source vector be the concatenation of the
contents of VR[VRA] followed by the contents of
VR[VRB].

For each integer value i from 0 to 15, do the following.
  Let index be the value specified by bits 3:7 of byte
  element i of VR[VRC].

So, the index value is 5-bits wide ([3:7]), not 4-bits wide.
VEX/priv/guest_ppc_toIR.c