Skip to content

Commit

Permalink
Add pure AVX GFNI mode (#268)
Browse files Browse the repository at this point in the history
Use GFNI even if not on AVX512.

* Add pure AVX GFNI mode
* Remove unused 32 byte AVX2 assembly
* Add test configs
  • Loading branch information
klauspost authored Jan 9, 2024
1 parent 162f2ba commit 5b85c72
Show file tree
Hide file tree
Showing 14 changed files with 73,943 additions and 9,366 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ jobs:
run: go vet ./...

- name: Test
run: go test -timeout=15m ./...
run: go test -timeout=15m

- name: Test Noasm
run: go test -tags=noasm -short&&go test -short -no-avx512&&go test -short -no-avx512 -no-avx2&&go test -no-avx512 -no-avx2 -no-ssse3 -short
run: go test -tags=noasm -short&&go test -short -no-avx512&&go test -short -no-avx512 -no-avx-gfni&&go test -short -no-avx512 -no-avx2&&go test -no-avx512 -no-avx2 -no-ssse3 -short

- name: Test Nopshufb
run: go test -tags=nopshufb -short&&go test -tags=nopshufb -short -no-avx512 -no-gfni&&go test -tags=nopshufb -short&&go test -tags=nopshufb -no-avx512 -no-avx2 -no-ssse3 -no-sse2 -short

run: go test -tags=nopshufb -short&&go test -tags=nopshufb -short -no-avx512&&go test -tags=nopshufb -short -no-avx512 -no-avx-gfni&&go test -tags=nopshufb -no-avx512 -no-avx2 -no-ssse3 -no-sse2 -short

- name: Test Race
env:
Expand Down Expand Up @@ -88,6 +87,11 @@ jobs:
CGO_ENABLED: 1
run: go test -no-avx512 -short -race .

- name: Test Races, no avx512, no avx-gfni
env:
CGO_ENABLED: 1
run: go test -no-avx512 -no-avx-gfni -short -race .

- name: Test Races, no avx2
env:
CGO_ENABLED: 1
Expand Down
Loading

0 comments on commit 5b85c72

Please sign in to comment.