[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-bugs
Subject:    [LLVMbugs] [Bug 15126] New: getX86TargetCPU: prefer native instead of pentium4
From:       bugzilla-daemon () llvm ! org
Date:       2013-01-30 20:48:47
Message-ID: bug-15126-206 () http ! llvm ! org/bugs/
[Download RAW message or body]

http://llvm.org/bugs/show_bug.cgi?id=15126

             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@nondot.org
        ReportedBy: 15026edff505@b04e8d0e182e.anonbox.net
                CC: llvmbugs@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
"athlon-xp".

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.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic