Skip to content

Commit

Permalink
VZEROUPPER
Browse files Browse the repository at this point in the history
  • Loading branch information
bwesterb committed Jul 11, 2024
1 parent 51bf02e commit d753364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions and_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ loop:
ADDQ $0x00000100, DX
SUBQ $0x00000001, BX
JNZ loop
VZEROUPPER
RET
2 changes: 2 additions & 0 deletions internal/asm/src.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ func main() {
SUBQ(U32(1), l)
JNZ(LabelRef("loop"))

VZEROUPPER()

RET()
Generate()
}

0 comments on commit d753364

Please sign in to comment.