Correct instruction_size_suffix so that the correct suffix can be selected for the instruction to adhere to AT&T syntax

This commit is contained in:
gingerBill
2026-08-17 12:59:23 +01:00
parent db94c5a6cb
commit d1f561ec88
4 changed files with 137 additions and 25 deletions

View File

@@ -541,7 +541,6 @@ gb_internal Ast *clone_ast(Ast *node, AstFile *f) {
n->AsmLabelDecl.name = clone_ast(n->AsmLabelDecl.name, f);
break;
case Ast_AsmInstruction:
n->AsmInstruction.prefix = clone_ast(n->AsmInstruction.prefix, f);
n->AsmInstruction.name = clone_ast(n->AsmInstruction.name, f);
n->AsmInstruction.operands = clone_ast_array(n->AsmInstruction.operands, f);
break;
@@ -2561,6 +2560,7 @@ gb_internal Ast *parse_asm_instruction(AstFile *f) {
Ast *instruction = alloc_ast_node(f, Ast_AsmInstruction);
instruction->AsmInstruction.name = name;
instruction->AsmInstruction.operands = operands;
instruction->AsmInstruction.valid_form_index = -1;
return instruction;
}
case Token_Period: