feat(arch): add the FP16 complex multiply and minimum-maximum to the extension layer

Assisted-by: GLM 5.3 Flash
This commit is contained in:
petrbalvin committed 2026-10-07 18:59:09 +02:00
1 parent 8080e0acef
commit 509afbb6c9
3 files changed
+145 -4

No files matched your search

+7 -2
View File
@@ -76,6 +76,11 @@ func TestAmd64ExtensionRegistry(t *testing.T) {
{"VFMSUB132SH", 1},
{"VFMSUB213SH", 1},
{"VFMSUB231SH", 1},
{"VFMULCPH", 3},
{"VFCMULCPH", 3},
{"VFMULCSH", 1},
{"VFCMULCSH", 1},
{"VMINMAXPH", 3},
} {
cands, ok := LookupExtension(arch.AMD64, tt.mnem)
if !ok {
@@ -89,8 +94,8 @@ func TestAmd64ExtensionRegistry(t *testing.T) {
t.Errorf("the %s lookup is not case-insensitive", tt.mnem)
}
}
if got := arch.Extensions(arch.AMD64); len(got) != 163 {
t.Errorf("the amd64 layer registers %d instructions, want 163", len(got))
if got := arch.Extensions(arch.AMD64); len(got) != 174 {
t.Errorf("the amd64 layer registers %d instructions, want 174", len(got))
}
if _, ok := LookupExtension(arch.AMD64, "NOSUCHINSTR"); ok {
t.Error("a non-extended mnemonic resolved")