[LLVMbugs] [Bug 14344] New: Clean up and fix X86 CPU features

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 14 15:38:47 PST 2012


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

             Bug #: 14344
           Summary: Clean up and fix X86 CPU features
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jkim at FreeBSD.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9541
  --> http://llvm.org/bugs/attachment.cgi?id=9541
Improve X86 CPU features

I have an AMD Family 10h processor and I realized that LZCNT and POPCNT are not
enabled by default.  Then, I looked at lib/Basic/Targets.cpp and found it needs
some love. :-)

Please see the attached patch.

- AMD SSE4A capable processors have LZCNT, POPCNT, and SSE3 instructions.
- AMD Piledriver("bdver2") processors have BMI and FMA instructions.
- All SSE levels enable MMX by default.
- All AVX capable processors have PCLMUL instruction.
- Sync. F16C feature with LLVM's X86.td.

Jung-uk Kim

-- 
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