Commit 0a7ec763 by Richard Kenner Committed by Richard Kenner

* combine.c (make_extraction): Don't make extension of CONST_INT.

From-SVN: r50491
parent abfabb98
Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* combine.c (make_extraction): Don't make extension of CONST_INT.
2002-03-09 Alexandre Oliva <aoliva@redhat.com> 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
* config/mips/mips.c (function_arg_pass_by_reference): Force to 0 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
......
...@@ -6032,6 +6032,9 @@ make_extraction (mode, inner, pos, pos_rtx, len, ...@@ -6032,6 +6032,9 @@ make_extraction (mode, inner, pos, pos_rtx, len,
if (mode == tmode) if (mode == tmode)
return new; return new;
if (GET_CODE (new) == CONST_INT)
return trunc_int_for_mode (INTVAL (new), mode);
/* If we know that no extraneous bits are set, and that the high /* If we know that no extraneous bits are set, and that the high
bit is not set, convert the extraction to the cheaper of bit is not set, convert the extraction to the cheaper of
sign and zero extension, that are equivalent in these cases. */ sign and zero extension, that are equivalent in these cases. */
......
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