aboutsummaryrefslogtreecommitdiff
path: root/External/SPEC/CINT2000/181.mcf/CMakeLists.txt
blob: a3313626b2eacd085a427b76b36ed089ad6586c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
macro(test_input run_type)
  llvm_test_run(RUN_TYPE ${run_type}
    ${BENCHMARK_DIR}/data/${run_type}/input/inp.in
    > ${CMAKE_CURRENT_BINARY_DIR}/inp.out
    WORKDIR ${CMAKE_CURRENT_BINARY_DIR}
  )
  llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
    ${BENCHMARK_DIR}/data/${run_type}/output/mcf.out
    ${CMAKE_CURRENT_BINARY_DIR}/mcf.out
  )
  llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
    ${BENCHMARK_DIR}/data/${run_type}/output/inp.out
    ${CMAKE_CURRENT_BINARY_DIR}/inp.out
  )
endmacro()

test_input(ref)
test_input(train)
test_input(test)

llvm_test_executable(${PROG} ${Source})