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

            Bug ID: 89426
           Summary: -mfpmath=sse isn't preserved
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: i386

[hjl@gnu-cfl-1 gcc]$ cat x.i
float
__attribute__((target("arch=haswell")))
foo (float x, float y)
{
  return x * y;
}
[hjl@gnu-cfl-1 gcc]$ gcc -S -m32 -march=i686 -mfpmath=sse x.i -O2
cc1: warning: SSE instruction set disabled, using 387 arithmetics
[hjl@gnu-cfl-1 gcc]$ cat x.s
        .file   "x.i"
        .text
        .p2align 4,,15
        .globl  foo
        .type   foo, @function
foo:
.LFB0:
        .cfi_startproc
        flds    4(%esp)
        fmuls   8(%esp)
        ret
        .cfi_endproc
.LFE0:
        .size   foo, .-foo

I am expecting SSE FP math in foo.

Reply via email to