Usage of curly braces in ARM assembly considered invalid #140963
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
ARM multi load/store instructions require curly braces to specify the target register range: https://developer.arm.com/documentation/ddi0406/c/Application-Level-Architecture/The-Instruction-Sets/Load-store-multiple-instructions?lang=en#:~:text=Load%20Multiple%20instructions%20load%20a,are%20consecutive%20word%2Daligned%20words.
The following inline assembly instruction requires curly braces as part of specifying the register range.
During compilation, I get the following error.
Reading https://rust-lang.github.io/rfcs/2873-inline-asm.html#use-of-double-braces-in-the-template-string, it looks like the only usage for curly braces was for AVX extension in x86.
Same error is reported on assembly that is included in Rust world with
core::arch::global_asm!(include_str!("asm.s"));
Is that a bug in the way the assembly blobs are parsed?
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: