c/5972: produces wrong assembly code when -march=pentiumpro and optimization (e.g. -O2)is on

Michael Lee ml@slack.net
Fri Mar 15 11:52:00 GMT 2002


You're correct the lines are "cmovne  %edx, %edi" and "cmovne %edx, %esi."
-ml



On 15 Mar 2002 jakub@gcc.gnu.org wrote:

> Synopsis: produces wrong assembly code when -march=pentiumpro and optimization (e.g. -O2)is on
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: jakub
> State-Changed-When: Fri Mar 15 08:56:13 2002
> State-Changed-Why:
>     Can you please mention the content of line 362 and 447 in
>     assembly (-save-temps)?
>     My guess would be it is cmovne, something like:
>             cmovne  %eax, %esi
>     I don't have access to Solaris ia32, so someone who has
>     needs to figure out what Solaris as syntax for this is,
>     and if it isn't able to assemble this instruction, then
>     we'd need to mask TARGET_CMOVE out with Solaris as.
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5972
> 



More information about the Gcc-bugs mailing list