Skip to content

Commit

Permalink
feat: add more avx512 instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Sep 30, 2024
1 parent 92749e8 commit 943c0c2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions amd64/instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@ func (amd64 *Amd64) RET() {

// AVX 512 instructions

// VSHUFI64X2: Shuffle 128-Bit Packed Quadword Integer Values
func (amd64 *Amd64) VSHUFI64X2(r1, r2, r3, r4 interface{}, comment ...string) {
amd64.writeOp(comment, "VSHUFI64X2", r1, r2, r3, r4)
}

// VPERMQ: Permute Quadword Integers
func (amd64 *Amd64) VPERMQ(r1, r2, r3 interface{}, comment ...string) {
amd64.writeOp(comment, "VPERMQ", r1, r2, r3)
}

// VPERMD: Permute Doubleword Integers
func (amd64 *Amd64) VPERMD(r1, r2, r3 interface{}, comment ...string) {
amd64.writeOp(comment, "VPERMD", r1, r2, r3)
}

// VPERMD_BCST_Z: Permute Doubleword Integers (Broadcast, Zeroing Masking)
func (amd64 *Amd64) VPERMD_BCST_Z(r1, r2, k, r3 interface{}, comment ...string) {
amd64.writeOp(comment, "VPERMD.BCST.Z", r1, r2, k, r3)
}

// KMOVW Move 16-bit Mask
func (amd64 *Amd64) KMOVW(r1, r2 interface{}, comment ...string) {
amd64.writeOp(comment, "KMOVW", r1, r2)
Expand Down

0 comments on commit 943c0c2

Please sign in to comment.