This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/37544] [4.2/4.3/4.4 Regression] Conversion double -> unsigned long long -> unsigned -> double gives wrong results



------- Comment #8 from ubizjak at gmail dot com  2008-09-17 10:39 -------
The problem is in regrename.c, function maybe_mode_change. We enter the
function with:

orig_mode = DImode
copy_mode = SImode
new_mode = DImode

At the beginning of maybe_mode_change() we have:

  if (orig_mode == new_mode)
    return gen_rtx_raw_REG (new_mode, regno);

we simply discard the change to a narrower mode.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37544


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]