Open witbring opened 9 months ago
@llvm/issue-subscribers-backend-aarch64
SXTW <Xd>, <Wn>
is an alias of (and preferred disassembly for) SBFM <Xd>, <Xn>, #0, #31
, so treating SXTW <Xd>, <Xn>
also as an alias seems harmless. On the other hand it's not explicitly permitted in the armv8-a architecture reference manual, and it's inconsistent with gcc which gives an error for these instructions.
Yes, it is. There seems to be an issue regarding compatibility with other assemblers. I believe it would be more effective to display an alarm message in order to inform the user about the alias.
I separate the bug report #67787 since the report has distinct bugs.
The subsequent issue was identified within Clang v16.0.0.
Register Type Check Bug
Clang takes incorrect arm syntax and silently change registers.
In case of S2, D2 registers, Clang produces error message.