llvm-project
llvm-project copied to clipboard
[IA] error: register expected
| 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
https://reviews.llvm.org/D68764
assigned to @jcai19