-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SIMD tests work when building multiarch binaries
MacOS multiarch binaries compile source code for each architecture and then join them together using 'lipo'. This means architecture specific code both in the actual source and configure tests need to be compilable on both architectures. Switch the configure tests and hts_probe_cc.sh so that they check if a given flag is needed to compile the test code instead of just testing to see if the flag works. By adding #ifdef __x86_64__ guards around the test code, compilation will work on non-x86_64 returning the result that no special compiler flag is needed. Similar #ifdef guards are added to the source files so that the SIMD-specific code only gets compiled for x86_64. The htscodecs submodule is updated to pull in these source file changes. The SIMD parts of built-in htscodecs are now compiled unconditionally. Tests for NEON have also been removed as they weren't really doing anything. The configure and hts_probe_cc.sh are adjusted to exactly match those used by htscodecs' configure, for ease of maintenance.
- Loading branch information
Showing
7 changed files
with
218 additions
and
149 deletions.
There are no files selected for viewing
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
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
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
Submodule htscodecs
updated
9 files
+7 −1 | .cirrus.yml | |
+54 −47 | configure.ac | |
+1 −3 | htscodecs/Makefile.am | |
+4 −1 | htscodecs/rANS_static32x16pr_avx2.c | |
+4 −2 | htscodecs/rANS_static32x16pr_avx512.c | |
+3 −0 | htscodecs/rANS_static32x16pr_neon.c | |
+5 −2 | htscodecs/rANS_static32x16pr_sse4.c | |
+0 −57 | m4/ax_check_compile_flag.m4 | |
+63 −0 | m4/hts_check_compile_flags_needed.m4 |
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
Oops, something went wrong.