combine.c (subst): Also handle (subreg (const_double ...)) case if created by a substitution...
* combine.c (subst): Also handle (subreg (const_double ...)) case if created by a substitution, by using the original inner mode. From-SVN: r69476
This commit is contained in:
parent
d41ba56fc4
commit
cc8c96fd6d
@ -1,3 +1,8 @@
|
||||
2003-07-16 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* combine.c (subst): Also handle (subreg (const_double ...)) case
|
||||
if created by a substitution, by using the original inner mode.
|
||||
|
||||
2003-07-16 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
|
||||
|
@ -3476,7 +3476,9 @@ subst (rtx x, rtx from, rtx to, int in_dest, int unique_copy)
|
||||
if (GET_CODE (new) == CLOBBER && XEXP (new, 0) == const0_rtx)
|
||||
return new;
|
||||
|
||||
if (GET_CODE (new) == CONST_INT && GET_CODE (x) == SUBREG)
|
||||
if (GET_CODE (x) == SUBREG
|
||||
&& (GET_CODE (new) == CONST_INT
|
||||
|| GET_CODE (new) == CONST_DOUBLE))
|
||||
{
|
||||
enum machine_mode mode = GET_MODE (x);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user