aboutsummaryrefslogtreecommitdiff
path: root/External/SPEC/CINT95/129.compress/CMakeLists.txt
blob: 91d51f3090b1463db6c6d4e57e18b6d8536c08ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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}
    WORKDIR ${CMAKE_CURRENT_BINARY_DIR}
    < data/${run_type}/input/${input} > ${output}
  )
  llvm_test_verify(RUN_TYPE ${run_type} WORKDIR ${CMAKE_CURRENT_BINARY_DIR}
    ${FPCMP} data/${run_type}/output/${output} ${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(129.compress ${Source})
llvm_test_data_spec_default(129.compress)