From: David Schleef Date: Wed, 11 Aug 2010 06:28:48 +0000 (-0700) Subject: Look for rules in reverse order X-Git-Tag: orc-0.4.7~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36eafbfea495f3203e59c6458ae9edb4521885ec;p=platform%2Fupstream%2Forc.git Look for rules in reverse order That way, we'll find the SSSE3 rules before SSE2. Duh. --- diff --git a/orc/orcopcodes.c b/orc/orcopcodes.c index 697ab44..405869f 100644 --- a/orc/orcopcodes.c +++ b/orc/orcopcodes.c @@ -187,7 +187,7 @@ orc_target_get_rule (OrcTarget *target, OrcStaticOpcode *opcode, if (j < 0 || j >= opcode_sets[k].n_opcodes) continue; if (opcode_sets[k].opcodes + j != opcode) continue; - for(i=0;in_rule_sets;i++){ + for(i=target->n_rule_sets-1;i>=0;i--){ if (target->rule_sets[i].opcode_major != opcode_sets[k].opcode_major) continue; if (target->rule_sets[i].required_target_flags & (~target_flags)) continue;