blob: 1c7a03eada303778f63681035ab9ec1a32067d3f [file] [log] [blame]
# Only enable verification of results if neither 'benchmarking only' has been
# selected nor -ffast-math is passed.
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UPPER)
set(COMBINED_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}} ${CPPFLAGS}")
if (NOT TEST_SUITE_BENCHMARKING_ONLY AND
NOT ${COMBINED_CXX_FLAGS} MATCHES ".*-ffast-math.*")
list(APPEND CPPFLAGS -DBENCH_AND_VERIFY)
endif()
llvm_test_run()
llvm_test_executable(LoopVectorizationBenchmarks
main.cpp
MathFunctions.cpp
RuntimeChecks.cpp
VectorOperations.cpp
)
target_link_libraries(LoopVectorizationBenchmarks benchmark)
llvm_test_run()
llvm_test_executable(LoopInterleavingBenchmarks
main.cpp
LoopInterleaving.cpp
)
target_link_libraries(LoopInterleavingBenchmarks benchmark)