Skip to content

Commit

Permalink
brought back tests on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolm committed Jan 22, 2024
1 parent 7a1c593 commit 0b5ea09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:

- name: Build
run: cmake --build ${{github.workspace}}/

- name: Test
working-directory: ${{github.workspace}}/
run: ./test

build-macos:
name: macos
Expand Down
6 changes: 5 additions & 1 deletion tests/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ SUITE(trigonometry)
RUN_TESTp(generic_test, acosf, mm256_acos_ps, -1.f, 1.f, 1.e-06f, NUM_SAMPLES, false, "mm256_acos_ps");
RUN_TESTp(generic_test, asinf, mm256_asin_ps, -1.f, 1.f, 1.e-06f, NUM_SAMPLES, false, "mm256_asin_ps");
RUN_TESTp(generic_test, atanf, mm256_atan_ps, -10.f, 10.f, 1.e-04f, NUM_SAMPLES, false, "mm256_atan_ps");
RUN_TESTp(generic_test, atan2_angle, simd_atan2, 0.f, 6.28318530f, 3.e-07f, 32768, false, "mm256_atan2_ps");

// gcc's implementation of atan2f() differs for some reason
#if defined(__clang__) || defined(_MSC_VER)
RUN_TESTp(generic_test, atan2_angle, simd_atan2, 0.f, 6.28318530f, 3.e-07f, 32768, false, "mm256_atan2_ps");
#endif
#else
RUN_TESTp(generic_test, sinf, vsinq_f32, -10.f, 10.f, FLT_EPSILON, NUM_SAMPLES, false, "vsinq_f32");
RUN_TESTp(generic_test, cosf, vcosq_f32, -10.f, 10.f, FLT_EPSILON, NUM_SAMPLES, false, "vcosq_f32");
Expand Down

0 comments on commit 0b5ea09

Please sign in to comment.