blob: 614535d6a4b865bf474ea239c6e3d506d80cbbb3 [file] [log] [blame]
# iOS compiler have -Werror=return-value, need to disable this explicitely
# (-w is not enough)
list(APPEND CFLAGS -Wno-return-type)
macro(test_input run_type input output)
llvm_test_run(RUN_TYPE ${run_type}
< ${BENCHMARK_DIR}/data/${run_type}/input/${input}
> ${CMAKE_CURRENT_BINARY_DIR}/${output}
)
llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
${BENCHMARK_DIR}/data/${run_type}/output/${output}
${CMAKE_CURRENT_BINARY_DIR}/${output}
)
endmacro()
test_input(test test.in test.out)
test_input(train test.in test.out)
test_input(ref bigtest.in bigtest.out)
llvm_test_executable(${PROG} ${Source})