Fix allocated reg in AT&T style asm
MODIFY
src/inline_asm.rs
src/inline_asm.rs
@@ -438,6 +438,9 @@ fn generate_asm_wrapper(&self, asm_name: &str) -> String {
generated_asm.push_str(s);
}
InlineAsmTemplatePiece::Placeholder { operand_idx, modifier, span: _ } => {
+ if self.options.contains(InlineAsmOptions::ATT_SYNTAX) {
+ generated_asm.push('%');
+ }
self.registers[*operand_idx]
.unwrap()
.emit(&mut generated_asm, self.arch, *modifier)

Fix allocated reg in AT&T style asm