fix: mismatch parsed and output length on amd64 (#2) #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
example: | |
name: example | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v4 | |
- name: Install clang | |
uses: ConorMacBride/install-package@v1 | |
with: | |
apt: clang libc6-dev-i386 | |
- name: Install GOAT | |
run: go install . | |
- name: Run GOAT | |
run: goat src/avx_mul_to.c -O3 -mavx -mfma | |
working-directory: example | |
- name: Run tests | |
run: go test -v ./... | |
working-directory: example | |
cases: | |
name: cases | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v4 | |
- name: Install clang | |
uses: ConorMacBride/install-package@v1 | |
with: | |
apt: clang libc6-dev-i386 | |
- name: Install GOAT | |
run: go install . | |
- name: Run tests | |
run: | | |
for file in tests/*.c; do | |
goat $file -O3 -mavx -mfma | |
done | |
- name: Run amd64-only tests | |
run: | | |
for file in tests/amd64/*.c; do | |
goat $file -O3 -mavx -mfma | |
done |