aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_simd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add misaligned load/store test to SIMDJack Lloyd2018-02-231-35/+52
|
* Enable using NEON on ClangJack Lloyd2017-12-101-2/+2
| | | | | Clang doesn't like the way SIMD shifts were implemented, I guess it fails to inline the constant. Make it a template parameter instead.
* Add compile-time rotation functionsJack Lloyd2017-10-121-17/+15
| | | | | | | | | | | | | | | | | The problem with asm rol/ror is the compiler can't schedule effectively. But we only need asm in the case when the rotation is variable, so distinguish the two cases. If a compile time constant, then static_assert that the rotation is in the correct range and do the straightforward expression knowing the compiler will probably do the right thing. Otherwise do a tricky expression that both GCC and Clang happen to have recognize. Avoid the reduction case; instead require that the rotation be in range (this reverts 2b37c13dcf). Remove the asm rotations (making this branch illnamed), because now both Clang and GCC will create a roll without any extra help. Remove the reduction/mask by the word size for the variable case. The compiler can't optimize that it out well, but it's easy to ensure it is valid in the callers, especially now that the variable input cases are easy to grep for.
* Add final annotations as appropriate in the test codeJack Lloyd2017-09-221-1/+1
|
* Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-22/+30
|
* Add support for NEON in SIMD_4x32Jack Lloyd2017-01-291-0/+161
Tested on qemu-aarch64