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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to