[llvm-bugs] [Bug 29149] New: clang integrated-as rejects ldc2/stc2 while targeting 32-bit mode ARMv8

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 26 02:02:00 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=29149

            Bug ID: 29149
           Summary: clang integrated-as rejects ldc2/stc2 while targeting
                    32-bit mode ARMv8
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bero at linaro.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

[bero at box1 ~]$ cat test.S
        ldc2 p1, cr8, [r0], #4
        stc2 p1, cr8, [r0], #4
[bero at box1 ~]$ clang -target arm-linux-androideabi -mcpu=cortex-a15 -o test.o
-c test.S
[bero at box1 ~]$ clang -target arm-linux-androideabi -mcpu=cortex-a53 -o test.o
-c test.S
test.S:1:7: error: invalid operand for instruction
 ldc2 p1, cr8, [r0], #4
      ^
test.S:2:7: error: invalid operand for instruction
 stc2 p1, cr8, [r0], #4
      ^


It's true that ldc2 and stc2 have been removed from the ARMv8 instruction set,
but AFAICT this shouldn't affect 32bit compat mode on an A53 (which should be a
superset of A15)

-- 
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/20160826/810cab51/attachment.html>


More information about the llvm-bugs mailing list