llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[IA] error: register expected

Open jcai19 opened this issue 7 years ago • 2 comments

Bugzilla Link 43631
Resolution FIXED
Resolved on Oct 22, 2019 21:44
Version trunk
OS All
CC @smithp35

Extended Description

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

jcai19 avatar Oct 10 '19 06:10 jcai19

https://reviews.llvm.org/D68764

jcai19 avatar Oct 10 '19 07:10 jcai19

assigned to @jcai19

jcai19 avatar Oct 10 '19 06:10 jcai19