blob: 516cafbe6141a70155d8d17ea7f315aef174b666 [file] [edit]
# 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
ConditionalScalarAssignment.cpp
main.cpp
MathFunctions.cpp
RuntimeChecks.cpp
VectorOperations.cpp
EarlyExit.cpp
)
target_link_libraries(LoopVectorizationBenchmarks benchmark)
llvm_test_run()
llvm_test_executable(LoopInterleavingBenchmarks
main.cpp
LoopInterleaving.cpp
)
target_link_libraries(LoopInterleavingBenchmarks benchmark)
llvm_test_run()
llvm_test_executable(LoopEpilogueVectorizationBenchmarks
main.cpp
EpilogueVectorization.cpp
)
target_link_libraries(LoopEpilogueVectorizationBenchmarks benchmark)