Commit ecc9dd93 by Nathan Sidwell Committed by Nathan Sidwell

stmt (expand_end_case): Reorder conversion sequence for jump table to avoid extra truncations.

	* stmt (expand_end_case): Reorder conversion sequence for jump
	table to avoid extra truncations.

From-SVN: r34291
parent ce7715bd
2000-05-31 Nathan Sidwell <nathan@codesourcery.com>
* stmt (expand_end_case): Reorder conversion sequence for jump
table to avoid extra truncations.
Wed May 31 01:31:42 2000 Jeffrey A Law (law@cygnus.com) Wed May 31 01:31:42 2000 Jeffrey A Law (law@cygnus.com)
* ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
......
...@@ -5579,10 +5579,10 @@ expand_end_case (orig_index) ...@@ -5579,10 +5579,10 @@ expand_end_case (orig_index)
#ifdef HAVE_tablejump #ifdef HAVE_tablejump
if (! win && HAVE_tablejump) if (! win && HAVE_tablejump)
{ {
index_expr = convert (thiscase->data.case_stmt.nominal_type, index_type = thiscase->data.case_stmt.nominal_type;
fold (build (MINUS_EXPR, index_type, index_expr = fold (build (MINUS_EXPR, index_type,
index_expr, minval))); convert (index_type, index_expr),
index_type = TREE_TYPE (index_expr); convert (index_type, minval)));
index = expand_expr (index_expr, NULL_RTX, VOIDmode, 0); index = expand_expr (index_expr, NULL_RTX, VOIDmode, 0);
emit_queue (); emit_queue ();
index = protect_from_queue (index, 0); index = protect_from_queue (index, 0);
......
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