mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.simd] cmd/compile: adjust param order for AndNot
This CL adjusts the parameter order of AndNot, making it x &^ y instead of ^x & y. This CL also added a test. This CL is partially generated by CL 687977. Change-Id: I244e7b887991dc97e695131a5287af1b0e6fc3ce Reviewed-on: https://go-review.googlesource.com/c/go/+/687996 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
6d10680141
commit
ef5f6cc921
3 changed files with 70 additions and 64 deletions
|
|
@ -196,6 +196,12 @@ func TestCompress(t *testing.T) {
|
|||
[]int32{2, 4, 0, 0}, "Compress")
|
||||
}
|
||||
|
||||
func TestAndNot(t *testing.T) {
|
||||
testInt32x4Binary(t, []int32{0b11, 0b00, 0b11, 0b00},
|
||||
[]int32{0b01, 0b01, 0b01, 0b01},
|
||||
[]int32{0b10, 0b00, 0b10, 0b00}, "AndNot")
|
||||
}
|
||||
|
||||
// checkInt8Slices ensures that b and a are equal, to the end of b.
|
||||
// also serves to use the slices, to prevent accidental optimization.
|
||||
func checkInt8Slices(t *testing.T, a, b []int8) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue