altivec: fix div255w rule
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 19 Mar 2011 21:47:40 +0000 (22:47 +0100)
committerDavid Schleef <ds@wendolyne.(none)>
Sat, 19 Mar 2011 22:23:48 +0000 (15:23 -0700)
orc/orcrules-altivec.c

index 36dbd6c..4b0e801 100644 (file)
@@ -1015,9 +1015,9 @@ powerpc_rule_div255w (OrcCompiler *p, void *user, OrcInstruction *insn)
   ORC_ASM_CODE(p,"  vspltish %s, 8\n", powerpc_get_regname(tmp2));
   powerpc_emit_VX(p, 0x1000034c, powerpc_regnum(tmp2), 8, 0);
 
-  powerpc_emit_VX_2 (p, "vsrw", 0x10000284, tmp, dest, tmp2);
+  powerpc_emit_VX_2 (p, "vsrh", 0x10000244, tmp, dest, tmp2);
   powerpc_emit_VX_2 (p, "vadduhm", 0x10000040, dest, dest, tmp);
-  powerpc_emit_VX_2 (p, "vsrw", 0x10000284, dest, dest, tmp2);
+  powerpc_emit_VX_2 (p, "vsrh", 0x10000244, dest, dest, tmp2);
 }
 
 void