[Bug target/69648] [5/6 Regression] wrong code with -O -mtune=winchip-c6 -fPIC -fexpensive-optimizations -msse4 @ i686

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Wed Feb 3 11:16:00 GMT 2016


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

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 37566
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37566&action=edit
output assembly (intel syntax)

The failing instructions are around line 156:
        mov     eax, DWORD PTR 60[esp]  # tmp87, %sfp
        pinsrw  xmm0, WORD PTR .LC9@GOTOFF[eax], 1      # tmp276,,

The code is using eax,ebx,ecx as a base for accessing of the data - but only
one register would be enough. This might be caused by the low optimisation
level though.


More information about the Gcc-bugs mailing list