aboutsummaryrefslogtreecommitdiff
path: root/External/SPEC/CINT2006/462.libquantum/CMakeLists.txt
blob: 9ad7280257ca4b24ce55ee42a526c1ffe53ca3a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
list(APPEND LDFLAGS -lm)

macro(test_input run_type)
  llvm_test_run(RUN_TYPE ${run_type}
    ${ARGN}
    > ${CMAKE_CURRENT_BINARY_DIR}/${run_type}.out
  )
  # Reference outputs for test+train have CRLF line endings so we have to use
  # diff --strip-trailing-cr
  # (This flag is a gnu extension, maybe we should rather extend fpcmp or
  #  somehow copy+fix the reference outputs?)
  llvm_test_verify(RUN_TYPE ${run_type} diff
    --strip-trailing-cr
    ${BENCHMARK_DIR}/data/${run_type}/output/${run_type}.out
    ${CMAKE_CURRENT_BINARY_DIR}/${run_type}.out
  )
endmacro()

test_input(test 33 5)
test_input(train 143 25)
test_input(ref 1397 8)

llvm_test_executable(${PROG} ${Source})