[Bug rtl-optimization/37544] [4.4 Regression] Conversion double -> unsigned long long -> unsigned -> double gives wrong results
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 17 12:02:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list