Skip to content

Commit

Permalink
arm64: Fix add/sub immediate.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeakohn committed Jan 17, 2024
1 parent d680dbf commit ffb2b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asm/arm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ static int op_add_sub_imm(
return -2;
}

if (operands[0].type != OPERAND_NUMBER)
if (operands[2].type != OPERAND_NUMBER)
{
return -2;
}
Expand Down

0 comments on commit ffb2b93

Please sign in to comment.