mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 22:14:53 +02:00
...
This commit is contained in:
@@ -781,7 +781,7 @@ func (f *Function) Set1Epi8(val any, vec Register) {
|
|||||||
case 256:
|
case 256:
|
||||||
temp := f.Vec(128)
|
temp := f.Vec(128)
|
||||||
defer f.ReleaseReg(temp)
|
defer f.ReleaseReg(temp)
|
||||||
f.instr("MOVL", r, temp)
|
f.instr("VMOVD", r, temp)
|
||||||
f.instr("VPBROADCASTB", temp, vec)
|
f.instr("VPBROADCASTB", temp, vec)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -798,7 +798,7 @@ func (f *Function) Set1Epi8(val any, vec Register) {
|
|||||||
case 256:
|
case 256:
|
||||||
temp := f.Vec(128)
|
temp := f.Vec(128)
|
||||||
defer f.ReleaseReg(temp)
|
defer f.ReleaseReg(temp)
|
||||||
f.instr("MOVL", v, temp)
|
f.instr("VMOVD", v, temp)
|
||||||
f.instr("VPBROADCASTB", temp, vec)
|
f.instr("VPBROADCASTB", temp, vec)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ func TestSIMDStringOps(t *testing.T) {
|
|||||||
actual = index_c0_asm_256(haystack)
|
actual = index_c0_asm_256(haystack)
|
||||||
}
|
}
|
||||||
if actual != expected {
|
if actual != expected {
|
||||||
t.Fatalf("Failed to find C0 char in: %#v (%d != %d) at size: %d", string(haystack), expected, actual, sz)
|
t.Fatalf("C0 char index failed in: %#v (%d != %d) at size: %d", string(haystack), expected, actual, sz)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,10 +201,10 @@ func TestSIMDStringOps(t *testing.T) {
|
|||||||
|
|
||||||
c0tests("")
|
c0tests("")
|
||||||
c0tests("abcdef")
|
c0tests("abcdef")
|
||||||
c0tests("a\x00")
|
|
||||||
c0tests("afsgdfg\x7f")
|
c0tests("afsgdfg\x7f")
|
||||||
c0tests("a\nfgdfgd\r")
|
c0tests("a\nfgdfgd\r")
|
||||||
c0tests("afgd\rfgd\t")
|
c0tests("afgd\rfgd\t")
|
||||||
|
c0tests("a\x00")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestIntrinsics(t *testing.T) {
|
func TestIntrinsics(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user