From: Andreas Schwab Date: Sat, 19 Mar 2011 21:47:40 +0000 (+0100) Subject: altivec: fix div255w rule X-Git-Tag: orc-0.4.12~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd515bca549cda617b1146509e4b577239dd884c;p=platform%2Fupstream%2Forc.git altivec: fix div255w rule --- diff --git a/orc/orcrules-altivec.c b/orc/orcrules-altivec.c index 36dbd6c..4b0e801 100644 --- a/orc/orcrules-altivec.c +++ b/orc/orcrules-altivec.c @@ -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