https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68749
Rainer Orth <ro at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.org --- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> --- (In reply to James Greenhalgh from comment #4) > Hi, sorry I missed this. I need to write a better filter for bugs I'm CCed > on, I'll work on that. No worries here. > I guess it is those subregs down from DImode to SImode. Sure enough, if we > swap int for long in this testcase, we get the expected expansion and the > expected number of true changes made. > > So, I'm not worried that the optimization is broken for Sparc (it does the > right thing for long), but I'm not sure I know the best way to work around > this for your target. swapping int for long would also help HPPA. HPPA chose > to skip the test entirely. That might also be right for Sparc. > > What do you think? That's probably best for Eric (Cc'ed) to say. Thanks. Rainer