summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Emont <guijemont@igalia.com>2012-12-13 17:57:08 +0100
committerGuillaume Emont <guijemont@igalia.com>2012-12-28 15:23:38 +0100
commitb3994ff9aa47c97db6ae9d2488ea57f51475514c (patch)
treee7028d30c86ee300db2212ab7d32ea725d79480c
parent5ff42a85f583f872433550aedea8e527a3e896d1 (diff)
downloadorc-b3994ff9aa47c97db6ae9d2488ea57f51475514c.tar.gz
mips: convssslw: fix typo on minimum value to compare
-rw-r--r--orc/orcrules-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/orc/orcrules-mips.c b/orc/orcrules-mips.c
index 143b23d..8a8b5d4 100644
--- a/orc/orcrules-mips.c
+++ b/orc/orcrules-mips.c
@@ -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);