feat(arch): the same-size shift-immediate family
Assisted-by: GLM 5.3 Flash
This commit is contained in:
1 parent
eda8b16c5f
commit
1031cd9ae7
4 files changed
+234
-13
No files matched your search
@@ -516,12 +516,19 @@ func TestExtensionNamesARM64(t *testing.T) {
|
||||
"ZSQSHL",
|
||||
"ZSQSHLU",
|
||||
"ZUQSHL",
|
||||
"ZSRI",
|
||||
"ZSSRA",
|
||||
"ZUSRA",
|
||||
"ZSRSRA",
|
||||
"ZURSRA",
|
||||
"ZASRD",
|
||||
"ZXAR",
|
||||
}
|
||||
got := ExtensionNames(arch.ARM64)
|
||||
if strings.Join(got, ",") != strings.Join(want, ",") {
|
||||
t.Errorf("ExtensionNames(ARM64) = %v, want %v", got, want)
|
||||
}
|
||||
if n := len(arch.Extensions(arch.ARM64)); n != 528 {
|
||||
t.Errorf("the family registers %d instructions, want 528", n)
|
||||
if n := len(arch.Extensions(arch.ARM64)); n != 537 {
|
||||
t.Errorf("the family registers %d instructions, want 537", n)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user