mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
Also zero upper at start of function
This commit is contained in:
@@ -1048,6 +1048,10 @@ func (s *Function) OutputASM(w io.Writer) {
|
||||
s.print_signature(w)
|
||||
fmt.Fprintf(w, "\nTEXT ·%s(SB), NOSPLIT, $0-%d\n", s.Name, s.Size)
|
||||
|
||||
if s.Used256BitReg {
|
||||
fmt.Fprintln(w, "\tVZEROUPPER // zero upper bits of AVX registers to avoid dependencies when switching between SSE and AVX code")
|
||||
}
|
||||
|
||||
s.Return()
|
||||
for _, i := range s.Instructions {
|
||||
fmt.Fprintln(w, i)
|
||||
|
||||
Reference in New Issue
Block a user