------- Comment #10 from ubizjak at gmail dot com 2008-09-17 12:01 -------
I'm testing following patch:
Index: regrename.c
===================================================================
--- regrename.c (revision 140409)
+++ regrename.c (working copy)
@@ -1314,6 +1314,9 @@
enum machine_mode new_mode, unsigned int regno,
unsigned int copy_regno ATTRIBUTE_UNUSED)
{
+ if (GET_MODE_SIZE (copy_mode) < GET_MODE_SIZE (new_mode))
+ return NULL_RTX;
+
if (orig_mode == new_mode)
return gen_rtx_raw_REG (new_mode, regno);
else if (mode_change_ok (orig_mode, new_mode, regno))
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37544