rtlhooks.c (gen_lowpart_if_possible): Check for invalid subreg before calling gen_lowpart_SUBREG.
2007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com> * rtlhooks.c (gen_lowpart_if_possible): Check for invalid subreg before calling gen_lowpart_SUBREG. From-SVN: r126230
This commit is contained in:
parent
22f70bffdd
commit
e4950e42af
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
||||
|
||||
* rtlhooks.c (gen_lowpart_if_possible): Check for
|
||||
invalid subreg before calling gen_lowpart_SUBREG.
|
||||
|
||||
2007-07-02 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* config/darwin9.h: Add copyright notice.
|
||||
|
|
|
@ -161,7 +161,9 @@ gen_lowpart_if_possible (enum machine_mode mode, rtx x)
|
|||
|
||||
return new;
|
||||
}
|
||||
else if (mode != GET_MODE (x) && GET_MODE (x) != VOIDmode)
|
||||
else if (mode != GET_MODE (x) && GET_MODE (x) != VOIDmode
|
||||
&& validate_subreg (mode, GET_MODE (x), x,
|
||||
subreg_lowpart_offset (mode, GET_MODE (x))))
|
||||
return gen_lowpart_SUBREG (mode, x);
|
||||
else
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue