Commit bf500664 by Richard Kenner

(do_tablejump): Call emit_cmp_insn with likely-constant as second

operand.

From-SVN: r6329
parent 5954c8a8
...@@ -9154,8 +9154,8 @@ do_tablejump (index, mode, range, table_label, default_label) ...@@ -9154,8 +9154,8 @@ do_tablejump (index, mode, range, table_label, default_label)
or equal to the minimum value of the range and less than or equal to or equal to the minimum value of the range and less than or equal to
the maximum value of the range. */ the maximum value of the range. */
emit_cmp_insn (range, index, LTU, NULL_RTX, mode, 1, 0); emit_cmp_insn (index, range, GTU, NULL_RTX, mode, 1, 0);
emit_jump_insn (gen_bltu (default_label)); emit_jump_insn (gen_bgtu (default_label));
/* If index is in range, it must fit in Pmode. /* If index is in range, it must fit in Pmode.
Convert to Pmode so we can index with it. */ Convert to Pmode so we can index with it. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment