[llvm-bugs] [Bug 43631] New: [IA] error: register expected

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 9 23:31:29 PDT 2019


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

            Bug ID: 43631
           Summary: [IA] error: register expected
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: caij2003 at gmail.com
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
                    Ties.Stuij at arm.com

Integrated assembler accepts immediate numbers without hash as the offset in
memory expression for GAS compatibility, but failed to handle those with
parentheses.

$cat bad.s 
.syntax unified
  ldr r12, [sp, (15)]
$clang -target arm-linux-gnueabihf bad.s   
bad.s:2:17: error: register expected
  ldr r12, [sp, (15)]
                ^
$ arm-linux-gnueabihf-as bad.s              
$ echo $?
0

-- 
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/20191010/beeadc6e/attachment.html>


More information about the llvm-bugs mailing list