[LLVMbugs] [Bug 10704] New: Do not automatically use SSE for math when SSE is available

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 19 01:42:15 PDT 2011


           Summary: Do not automatically use SSE for math when SSE is
           Product: dragonegg
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
        AssignedTo: baldrick at free.fr
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu

GCC only uses SSE for floating point math if TARGET_SSE_MATH (there is also a
mysterious TARGET_MIX_SSE_I387), even if SSE is otherwise available.  Add
for this.  This means some changes to the X86 target.  I think what is needed
for these tests for whether to use the FP stack to get more complicated:

def FPStackf32   : Predicate<"!Subtarget->hasXMM()">;
def FPStackf64   : Predicate<"!Subtarget->hasXMMInt()">;

Noticed when building wine on an x86-64 machine with -m32: GCC uses the
point stack for math, while dragonegg uses SSE.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list