aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-12-26 18:12:37 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1993-12-26 18:12:37 -0500
commitbf500664d77741f264e95927eb3f4554fdd88e90 (patch)
tree03fcae3ea4395f57126a9ab041829ee42161818f /gcc
parent5954c8a8b76b1a812a514277f0bea782d02cac30 (diff)
downloadgcc-bf500664d77741f264e95927eb3f4554fdd88e90.zip
gcc-bf500664d77741f264e95927eb3f4554fdd88e90.tar.gz
gcc-bf500664d77741f264e95927eb3f4554fdd88e90.tar.bz2
(do_tablejump): Call emit_cmp_insn with likely-constant as second
operand. From-SVN: r6329
Diffstat (limited to 'gcc')
-rw-r--r--gcc/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index d17755d..2f89d02 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -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
the maximum value of the range. */
- emit_cmp_insn (range, index, LTU, NULL_RTX, mode, 1, 0);
- emit_jump_insn (gen_bltu (default_label));
+ emit_cmp_insn (index, range, GTU, NULL_RTX, mode, 1, 0);
+ emit_jump_insn (gen_bgtu (default_label));
/* If index is in range, it must fit in Pmode.
Convert to Pmode so we can index with it. */