Failure introduced by the sahf patch(es) (was: Re: [Bug fortran/29975] [meta-bugs] ICEs with CP2K)

Uros Bizjak
Wed Mar 14 15:56:00 GMT 2007

On 3/14/07, FX Coudert <> wrote:

> > there seems to be a new gcc error on CP2K:
> >
> > gfortran -c -O3 -ftree-loop-linear -ftree-vectorize -ffast-math -
> > march=opteron
> > -msse2 fparser.f90
> >
> > /tmp/ccNk6D7G.s: Assembler messages:
> > /tmp/ccNk6D7G.s:820: Error: suffix or operands invalid for `sahf'
> There has been a recent addition to add this "sahf" to the
> instructions used by the i386 back-end.

This is mine, but from asm dump:

        fnstsw  %ax
        jp      .L120
        fstp    %st(1)
        xorpd   %xmm2, %xmm2

This is perfectly good asm for MOD() a.k.a. fmod() function.


More information about the Gcc-patches mailing list