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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to