From 42546982a254031a5ead53e53ba2a5872b582651 Mon Sep 17 00:00:00 2001 From: Mikko Orispaa Date: Fri, 20 Nov 2015 07:32:34 +0000 Subject: Changed NEON test in CMakeList.txt so that it works for newer ARMs (-mfloat-abi=hard). Fixed a bug in test.c (did not compile for NEON-ARM). --- CMakeLists.txt | 4 ++-- tests/test.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 00122db..f6f5c4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,7 +130,7 @@ if(NOT CMAKE_CROSSCOMPILING) ) # Test running with -mfpu=neon - set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_SAVE} -mfpu=neon -mfloat-abi=softfp") + set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_SAVE} -mfpu=neon -mfloat-abi=hard") check_c_source_runs("${TEST_SOURCE_CODE}" NEON_SUPPORTED) if(NOT NEON_SUPPORTED) @@ -389,4 +389,4 @@ add_executable(ffts_test target_link_libraries(ffts_test ffts_static ${FFTS_EXTRA_LIBRARIES} -) \ No newline at end of file +) diff --git a/tests/test.c b/tests/test.c index 9559095..d07f766 100644 --- a/tests/test.c +++ b/tests/test.c @@ -165,7 +165,7 @@ int main(int argc, char *argv[]) printf("%d %d %f %f\n", i, sign, output[2*i], output[2*i+1]); ffts_free(p); -#ifdef HAVE_NEON +#ifdef HAVE_SSE _mm_free(input); _mm_free(output); #else @@ -189,4 +189,4 @@ int main(int argc, char *argv[]) } return 0; -} \ No newline at end of file +} -- cgit v1.1