diff options
author | Jack Lloyd <[email protected]> | 2017-12-10 11:25:22 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-10 11:51:38 -0500 |
commit | 5e69b9a4e4b703247189e46652a41b901de06dae (patch) | |
tree | 688ffe88f81613facbb0d4d44f4b21909290eba8 /src/tests | |
parent | 6284d7507130288fa8cc7ece096ecac56a81f8cd (diff) |
Enable using NEON on Clang
Clang doesn't like the way SIMD shifts were implemented, I guess
it fails to inline the constant. Make it a template parameter instead.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_simd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_simd.cpp b/src/tests/test_simd.cpp index 1f192c6b6..60c46fc67 100644 --- a/src/tests/test_simd.cpp +++ b/src/tests/test_simd.cpp @@ -82,10 +82,10 @@ class SIMD_32_Tests final : public Test blender = ~blender; test_eq(result, "~", blender, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF); - blender = blender >> 23; + blender = blender.shr<23>(); test_eq(result, ">>", blender, 0x1FF, 0x1FF, 0x1FF, 0x1FF); - blender = blender << 27; + blender = blender.shl<27>(); test_eq(result, "<<", blender, 0xF8000000, 0xF8000000, 0xF8000000, 0xF8000000); blender = ~blender; |