mips: convssslw: fix typo on minimum value to compare
authorGuillaume Emont <guijemont@igalia.com>
Thu, 13 Dec 2012 16:57:08 +0000 (17:57 +0100)
committerGuillaume Emont <guijemont@igalia.com>
Fri, 28 Dec 2012 14:23:38 +0000 (15:23 +0100)
orc/orcrules-mips.c

index 143b23d..8a8b5d4 100644 (file)
@@ -232,7 +232,7 @@ mips_rule_convssslw (OrcCompiler *compiler, void *user, OrcInstruction *insn)
   orc_mips_emit_slt (compiler, tmp1, tmp0, src);
   orc_mips_emit_movn (compiler, dest, tmp0, tmp1);
   orc_mips_emit_lui (compiler, tmp0, (ORC_SW_MIN >> 16) & 0xffff);
-  orc_mips_emit_ori (compiler, tmp0, tmp0, ORC_SW_MAX & 0xffff);
+  orc_mips_emit_ori (compiler, tmp0, tmp0, ORC_SW_MIN & 0xffff);
   /* this still works if src == dest since in that case, its value is either
    * the original src or ORC_SW_MAX, which works as well here */
   orc_mips_emit_slt (compiler, tmp1, src, tmp0);