[Bug rtl-optimization/78041] Wrong code on ARMv7 with -mthumb -mfpu=neon-fp16 -O0

bernd.edlinger at hotmail dot de gcc-bugzilla@gcc.gnu.org
Thu Oct 20 16:32:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78041

--- Comment #9 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Wilco from comment #8)
> 
> I've got a patch that fixes it, it's being tested.
> 
> While looking at how DI mode operations get expanded, I noticed there is a
> CQ issue with your shift change. Shifts that are expanded early now use
> extra registers due to the DI mode write of zero. Given all other DI mode
> operations are expanded after reload, it may be better to do the same for
> shifts too.

Interesting idea.  After reload there is no need anymore to zero the
DI mode register at all, so that could become completely unnecessary.


More information about the Gcc-bugs mailing list