Fixed add and sub instruction encoding on arm64

This commit is contained in:
2025-03-15 15:51:08 +01:00
parent fea4e4cbe7
commit 93042f81e7
7 changed files with 49 additions and 13 deletions

View File

@ -14,8 +14,10 @@ func TestCompareRegisterNumber(t *testing.T) {
Number int
Code uint32
}{
{arm.X0, 0, 0xF100001F},
{arm.X0, 1, 0xF100041F},
{arm.X0, -1, 0xB100041F},
{arm.X0, 0x1000, 0xF140041F},
}
for _, pattern := range usagePatterns {