Source File
extra_amd64.go
Belonging Package
simd/archsimd
// Copyright 2025 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.//go:build goexperiment.simd && amd64package archsimd// ClearAVXUpperBits clears the high bits of Y0-Y15 and Z0-Z15 registers.// It is intended for transitioning from AVX to SSE, eliminating the// performance penalties caused by false dependencies.//// Note: in the future the compiler may automatically generate the// instruction, making this function unnecessary.//// Asm: VZEROUPPER, CPU Feature: AVXfunc ()// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Int8x16) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Int8x32) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Int16x8) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Int16x16) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Int32x4) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Int32x8) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Int64x2) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Int64x4) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Uint8x16) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Uint8x32) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Uint16x8) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Uint16x16) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Uint32x4) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Uint32x8) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Uint64x2) () bool// IsZero returns true if all elements of x are zeros.//// This method compiles to VPTEST x, x.// x.And(y).IsZero() and x.AndNot(y).IsZero() will be optimized to VPTEST x, y//// Asm: VPTEST, CPU Feature: AVXfunc ( Uint64x4) () bool
![]() |
The pages are generated with Golds v0.8.3-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |