]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
PPC64, revert the change to vperm instruction.
authorCarl Love <carll@us.ibm.com>
Wed, 4 Oct 2017 15:54:07 +0000 (10:54 -0500)
committerCarl Love <carll@us.ibm.com>
Wed, 4 Oct 2017 15:54:07 +0000 (10:54 -0500)
The patch was in my git tree with the patch I intended to apply.
I didn't realize the patch was in the tree.  Git applied both
patches.  Still investigating the vperm change to see if it is
really needed.

VEX/priv/guest_ppc_toIR.c

index 6b2157d8614011e8c1f2c156fcdf8df53cbccf78..b5b0d03c30acd3053a12aeb20d4b58e1e444f0eb 100644 (file)
@@ -24296,12 +24296,12 @@ static Bool dis_av_permute ( UInt theInstr )
       IRTemp vC_andF = newTemp(Ity_V128);
       DIP("vperm v%d,v%d,v%d,v%d\n",
           vD_addr, vA_addr, vB_addr, vC_addr);
-      /* Limit the Perm8x16 steering values to 0 .. 31 as that is what
+      /* Limit the Perm8x16 steering values to 0 .. 15 as that is what
          IR specifies, and also to hide irrelevant bits from
          memcheck */
       assign( vC_andF,
               binop(Iop_AndV128, mkexpr(vC),
-                                 unop(Iop_Dup8x16, mkU8(0x1F))) );
+                                 unop(Iop_Dup8x16, mkU8(0xF))) );
       assign( a_perm,
               binop(Iop_Perm8x16, mkexpr(vA), mkexpr(vC_andF)) );
       assign( b_perm,