[LLVMbugs] [Bug 18239] New: Incorrect CPU selected in cc1 for 3 ARM architectures

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 13 06:31:33 PST 2013


            Bug ID: 18239
           Summary: Incorrect CPU selected in cc1 for 3 ARM architectures
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bogden at arm.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Giving the following architectures to the -target option in clang results in
surprising CPU selection in cc1:

1) armv5tej: -target-cpu arm1022e (expected arm926ej-s)
2) armv6j:   -target-cpu arm1136jf-s (expected arm1136j-s)
3) armv6z:   -target-cpu arm1136jf-s (expected arm1176jzf-s)

I'm not convinced that (2) is wrong, but it is inconsistent with the mapping
given in function getARMCPUForMArch in lib/Driver/Tools.cpp.

(1) and (3) seem incorrect as well as inconsistent with the mapping. 1022e does
not implement the 'j' part of v5tej, and 1136jf-s does not implement the 'z'
part of armv6z.

This is captured in FIXMEs in test/Driver/arm-cortex-cpus.c.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131213/f397cc6b/attachment.html>

More information about the llvm-bugs mailing list