[LLVMbugs] [Bug 15126] New: getX86TargetCPU: prefer native instead of pentium4

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 30 12:48:47 PST 2013


             Bug #: 15126
           Summary: getX86TargetCPU: prefer native instead of pentium4
           Product: clang
           Version: 3.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: 15026edff505 at b04e8d0e182e.anonbox.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

(I'm not sure if this is a configuration/build issue of my Linux distribution.)

In lib/Driver/Tools.cpp getX86TargetCPU returns "pentium4" without given
-march/-target-cpu on my system (athlon-xp, i686-pc-linux-gnu). The problem is,
that the generated code contains SSE2 instructions not available on this CPU
and programs exit with SIGILL. llvm::sys::getHostCPUName() correctly returns

May be related to Bug 2051.

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