[test-suite] r257370 - cmake/lit: Add integer part of SPEC CPU2006
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 11:37:25 PST 2016
Author: matze
Date: Mon Jan 11 13:37:25 2016
New Revision: 257370
URL: http://llvm.org/viewvc/llvm-project?rev=257370&view=rev
Log:
cmake/lit: Add integer part of SPEC CPU2006
This adds support for the integer C/C++ tests of the SPEC CPU2006
benchmark suite.
Added:
test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/401.bzip2/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/403.gcc/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/429.mcf/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/445.gobmk/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/456.hmmer/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/458.sjeng/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/462.libquantum/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/464.h264ref/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/471.omnetpp/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/ppc/
test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/ppc/endian.h
test-suite/trunk/External/SPEC/CINT2006/CMakeLists.txt
Modified:
test-suite/trunk/External/SPEC/CMakeLists.txt
Added: test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,139 @@
+list(APPEND CPPFLAGS -DPERL_CORE -DI_TIME)
+list(APPEND CFLAGS -std=gnu89)
+
+include_directories(${BENCHMARK_DIR}/src)
+
+set(SourceNames
+ av.c
+ deb.c
+ doio.c
+ doop.c
+ dump.c
+ globals.c
+ gv.c
+ hv.c
+ locale.c
+ mg.c
+ numeric.c
+ op.c
+ pad.c
+ perl.c
+ perlapi.c
+ perlio.c
+ perlmain.c
+ perly.c
+ pp.c
+ pp_ctl.c
+ pp_hot.c
+ pp_pack.c
+ pp_sort.c
+ pp_sys.c
+ regcomp.c
+ regexec.c
+ run.c
+ scope.c
+ sv.c
+ taint.c
+ toke.c
+ universal.c
+ utf8.c
+ util.c
+ xsutils.c
+ Base64.c
+ Cwd.c
+ Dumper.c
+ HiRes.c
+ IO.c
+ Peek.c
+ attrs.c
+ poll.c
+ stdio.c
+ DynaLoader.c
+ MD5.c
+ Storable.c
+ Parser.c
+ specrand.c
+ Hostname.c
+ Opcode.c
+)
+set(Source "")
+foreach(FILENAME ${SourceNames})
+ list(APPEND Source ${BENCHMARK_DIR}/src/${FILENAME})
+endforeach()
+
+macro(test_input run_type perlscript output)
+ llvm_test_run(RUN_TYPE ${run_type}
+ -I${CMAKE_CURRENT_BINARY_DIR}/data/all/input/lib ${perlscript}
+ > ${CMAKE_CURRENT_BINARY_DIR}/${output}
+ ${ARGN}
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ ${BENCHMARK_DIR}/data/${run_type}/output/${output}
+ ${CMAKE_CURRENT_BINARY_DIR}/${output}
+ )
+endmacro()
+
+# (Parameters come from the respective XXX.in files)
+test_input(train
+ ${BENCHMARK_DIR}/data/all/input/diffmail.pl
+ diffmail.2.550.15.24.23.100.out
+ 2 550 15 24 23 100
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/all/input
+)
+test_input(train
+ ${BENCHMARK_DIR}/data/train/input/perfect.pl
+ perfect.b.3.out
+ b 3
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/train/input
+)
+test_input(train
+ ${BENCHMARK_DIR}/data/all/input/splitmail.pl
+ splitmail.535.13.25.24.1091.out
+ 535 13 25 24 1091
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/all/input
+)
+test_input(train
+ ${BENCHMARK_DIR}/data/train/input/suns.pl
+ suns.out
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/train/input
+)
+llvm_test_verify(RUN_TYPE train ${FPCMP}
+ ${BENCHMARK_DIR}/data/train/output/validate
+ ${CMAKE_CURRENT_BINARY_DIR}/data/train/input/validate
+)
+#test_input(train scrabbl.pl scrabbl.in) # spec doesn't come with output files?
+
+test_input(ref
+ ${BENCHMARK_DIR}/data/all/input/diffmail.pl
+ diffmail.4.800.10.17.19.300.out
+ 4 800 10 17 19 300
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/all/input
+)
+test_input(ref
+ ${BENCHMARK_DIR}/data/all/input/splitmail.pl
+ splitmail.1600.12.26.16.4500.out
+ 1600 12 26 16 4500
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/all/input
+)
+test_input(ref
+ ${BENCHMARK_DIR}/data/ref/input/checkspam.pl
+ checkspam.2500.5.25.11.150.1.1.1.1.out
+ 2500 5 25 11 150 1 1 1 1
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/all/input
+)
+
+file(GLOB inputs ${BENCHMARK_DIR}/data/test/input/*.t)
+foreach(input ${inputs})
+ get_filename_component(basename ${input} NAME_WE)
+ test_input(test
+ ${CMAKE_CURRENT_BINARY_DIR}/data/test/input/${basename}.t
+ ${basename}.out
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/test/input
+ )
+endforeach()
+
+llvm_multisource()
+
+include(CopyDir)
+llvm_copy_dir(400.perlbench ${CMAKE_CURRENT_BINARY_DIR}/data
+ ${BENCHMARK_DIR}/data)
Added: test-suite/trunk/External/SPEC/CINT2006/401.bzip2/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/401.bzip2/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/401.bzip2/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/401.bzip2/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,27 @@
+macro(test_input run_type input size output)
+ llvm_test_run(RUN_TYPE ${run_type}
+ ${input}
+ ${size}
+ > ${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 ${BENCHMARK_DIR}/data/all/input/input.program 5 input.program.out)
+test_input(test ${BENCHMARK_DIR}/data/test/input/dryer.jpg 2 dryer.jpg.out)
+
+test_input(train ${BENCHMARK_DIR}/data/all/input/input.program 10 input.program.out)
+test_input(train ${BENCHMARK_DIR}/data/train/input/byoudoin.jpg 5 byoudoin.jpg.out)
+test_input(train ${BENCHMARK_DIR}/data/all/input/input.combined 80 input.combined.out)
+
+test_input(ref ${BENCHMARK_DIR}/data/ref/input/input.source 280 input.source.out)
+test_input(ref ${BENCHMARK_DIR}/data/ref/input/chicken.jpg 30 chicken.jpg.out)
+test_input(ref ${BENCHMARK_DIR}/data/ref/input/liberty.jpg 30 liberty.jpg.out)
+test_input(ref ${BENCHMARK_DIR}/data/all/input/input.program 280 input.program.out)
+test_input(ref ${BENCHMARK_DIR}/data/ref/input/text.html 280 text.html.out)
+test_input(ref ${BENCHMARK_DIR}/data/all/input/input.combined 200 input.combined.out)
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/403.gcc/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/403.gcc/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/403.gcc/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/403.gcc/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,31 @@
+include_directories(${BENCHMARK_DIR}/src)
+
+include(TestBigEndian)
+if(IS_BIGENDIAN)
+ list(APPEND CPPFLAGS -DHOST_WORDS_BIG_ENDIAN)
+endif()
+
+macro(test_input run_type ifile sfile)
+ llvm_test_run(RUN_TYPE ${run_type}
+ ${BENCHMARK_DIR}/data/${run_type}/input/${ifile}
+ -o ${CMAKE_CURRENT_BINARY_DIR}/${sfile}
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ ${BENCHMARK_DIR}/data/${run_type}/output/${sfile}
+ ${CMAKE_CURRENT_BINARY_DIR}/${sfile}
+ )
+endmacro()
+
+test_input(test cccp.i cccp.s)
+test_input(train integrate.i integrate.s)
+test_input(ref 166.i 166.s)
+test_input(ref 200.i 200.s)
+test_input(ref c-typeck.i c-typeck.s)
+test_input(ref cp-decl.i cp-decl.s)
+test_input(ref expr.i expr.s)
+test_input(ref expr2.i expr2.s)
+test_input(ref g23.i g23.s)
+test_input(ref s04.i s04.s)
+test_input(ref scilab.i scilab.s)
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/429.mcf/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/429.mcf/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/429.mcf/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/429.mcf/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,23 @@
+list(APPEND CPPFLAS -DWANT_STDC_PROTO)
+
+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/inp.out
+ ${CMAKE_CURRENT_BINARY_DIR}/inp.out
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ ${BENCHMARK_DIR}/data/${run_type}/output/mcf.out
+ ${CMAKE_CURRENT_BINARY_DIR}/mcf.out
+ )
+endmacro()
+
+test_input(test)
+test_input(train)
+test_input(ref)
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/445.gobmk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/445.gobmk/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/445.gobmk/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/445.gobmk/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,43 @@
+list(APPEND CPPFLAS -DWANT_STDC_PROTO)
+
+set(Source "")
+foreach(dir IN ITEMS
+ src/sgf src/engine src/interface src/patterns src/utils src)
+ include_directories(${BENCHMARK_DIR}/${dir})
+ file(GLOB MoreSource ${BENCHMARK_DIR}/${dir}/*.c)
+ list(APPEND Source ${MoreSource})
+endforeach()
+include_directories(${BENCHMARK_DIR}/src/include)
+
+macro(test_input run_type tstfile outfile)
+ llvm_test_run(RUN_TYPE ${run_type}
+ --quiet --mode gtp
+ < ${BENCHMARK_DIR}/data/${run_type}/input/${tstfile}
+ > ${CMAKE_CURRENT_BINARY_DIR}/${outfile}
+ WORKDIR ${BENCHMARK_DIR}/data/all/input
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ ${BENCHMARK_DIR}/data/${run_type}/output/${outfile}
+ ${CMAKE_CURRENT_BINARY_DIR}/${outfile}
+ )
+endmacro()
+
+foreach(tstfile IN ITEMS
+ capture.tst connect_rot.tst connection_rot.tst dniwog.tst connect.tst
+ connection.tst cutstone.tst)
+ get_filename_component(basename ${tstfile} NAME_WE)
+ test_input(test ${tstfile} ${basename}.out)
+endforeach()
+foreach(tstfile IN ITEMS
+ arb.tst arion.tst blunder.tst nicklas2.tst arend.tst atari_atari.tst
+ buzco.tst nicklas4.tst)
+ get_filename_component(basename ${tstfile} NAME_WE)
+ test_input(train ${tstfile} ${basename}.out)
+endforeach()
+foreach(tstfile IN ITEMS
+ 13x13.tst nngs.tst score2.tst trevorc.tst trevord.tst)
+ get_filename_component(basename ${tstfile} NAME_WE)
+ test_input(ref ${tstfile} ${basename}.out)
+endforeach()
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/456.hmmer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/456.hmmer/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/456.hmmer/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/456.hmmer/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,36 @@
+macro(test_input run_type input output)
+ # The benchmark modifies the data file, need to copy a fresh one
+ llvm_test_run(RUN_TYPE ${run_type} EXECUTABLE cp -f
+ ${BENCHMARK_DIR}/data/${run_type}/input/${input}
+ ${CMAKE_CURRENT_BINARY_DIR}/${input}
+ )
+ llvm_test_run(RUN_TYPE ${run_type}
+ ${ARGN} ${input}
+ > ${CMAKE_CURRENT_BINARY_DIR}/${output}
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ -r 0.002 -a 0.00001
+ ${BENCHMARK_DIR}/data/${run_type}/output/${output}
+ ${CMAKE_CURRENT_BINARY_DIR}/${output}
+ )
+endmacro()
+
+test_input(test bombesin.hmm bombesin.out
+ --fixed 0 --mean 325 --num 45000 --sd 200 --seed 0
+)
+test_input(train leng100.hmm leng100.out
+ --fixed 0 --mean 425 --num 85000 --sd 300 --seed 0
+)
+# Copy nph3.hmm as well
+llvm_test_run(RUN_TYPE ref EXECUTABLE cp -f
+ ${BENCHMARK_DIR}/data/ref/input/nph3.hmm
+ ${CMAKE_CURRENT_BINARY_DIR}/nph3.hmm
+)
+test_input(ref swiss41 nph3.out
+ nph3.hmm
+)
+test_input(ref retro.hmm retro.out
+ --fixed 0 --mean 500 --num 500000 --sd 350 --seed 0
+)
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/458.sjeng/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/458.sjeng/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/458.sjeng/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/458.sjeng/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,16 @@
+macro(test_input run_type)
+ llvm_test_run(RUN_TYPE ${run_type}
+ ${BENCHMARK_DIR}/data/${run_type}/input/${run_type}.txt
+ > ${CMAKE_CURRENT_BINARY_DIR}/${run_type}.out
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ ${BENCHMARK_DIR}/data/${run_type}/output/${run_type}.out
+ ${CMAKE_CURRENT_BINARY_DIR}/${run_type}.out
+ )
+endmacro()
+
+test_input(test)
+test_input(train)
+test_input(ref)
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/462.libquantum/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/462.libquantum/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/462.libquantum/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/462.libquantum/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,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_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/464.h264ref/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/464.h264ref/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/464.h264ref/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/464.h264ref/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,43 @@
+if(ARCH STREQUAL "PowerPC" AND TARGET_OS STREQUAL "Linux")
+ list(APPEND CFLAGS -fsigned-char)
+endif()
+
+macro(test_input run_type leading level)
+ llvm_test_run(RUN_TYPE ${run_type}
+ -d ${leading}encoder_${level}.cfg
+ > ${CMAKE_CURRENT_BINARY_DIR}/${leading}${level}_encodelog.out
+ WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/${run_type}/input
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ ${BENCHMARK_DIR}/data/${run_type}/output/${leading}${level}_encodelog.out
+ ${CMAKE_CURRENT_BINARY_DIR}/${leading}${level}_encodelog.out
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ ${BENCHMARK_DIR}/data/${run_type}/output/${leading}${level}_leakybucketparam.cfg
+ ${CMAKE_CURRENT_BINARY_DIR}/data/${run_type}/input/${leading}${level}_leakybucketparam.cfg
+ )
+
+endmacro()
+
+test_input(test foreman_test_ baseline)
+test_input(train foreman_train_ baseline)
+test_input(ref foreman_ref_ baseline)
+test_input(ref foreman_ref_ main)
+test_input(ref sss_ main)
+
+llvm_multisource()
+
+# TODO: This will copy a bit more than 50M of data, maybe we should symlink it?
+include(CopyDir)
+llvm_copy_dir(464.h264ref ${CMAKE_CURRENT_BINARY_DIR}/data/test/input
+ ${BENCHMARK_DIR}/data/all/input
+ ${BENCHMARK_DIR}/data/test/input
+)
+llvm_copy_dir(464.h264ref ${CMAKE_CURRENT_BINARY_DIR}/data/train/input
+ ${BENCHMARK_DIR}/data/all/input
+ ${BENCHMARK_DIR}/data/train/input
+)
+llvm_copy_dir(464.h264ref ${CMAKE_CURRENT_BINARY_DIR}/data/ref/input
+ ${BENCHMARK_DIR}/data/all/input
+ ${BENCHMARK_DIR}/data/ref/input
+)
Added: test-suite/trunk/External/SPEC/CINT2006/471.omnetpp/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/471.omnetpp/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/471.omnetpp/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/471.omnetpp/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,119 @@
+include_directories(
+ ${BENCHMARK_DIR}/src
+ ${BENCHMARK_DIR}/src/omnet_include
+ ${BENCHMARK_DIR}/src/libs/envir
+)
+set(SourceNames
+ eth-index_n.cc
+ EtherApp_m.cc
+ EtherAppCli.cc
+ EtherAppCli_n.cc
+ EtherAppSrv.cc
+ EtherAppSrv_n.cc
+ EtherBus.cc
+ EtherBus_n.cc
+ EtherCtrl_m.cc
+ EtherEncap.cc
+ EtherEncap_n.cc
+ EtherFrame_m.cc
+ EtherHost_n.cc
+ EtherHub.cc
+ EtherHub_n.cc
+ EtherLLC.cc
+ EtherLLC_n.cc
+ EtherMAC.cc
+ EtherMAC_n.cc
+ EtherSwitch_n.cc
+ LargeNet_n.cc
+ libs/cmdenv/cmdenv.cc
+ libs/cmdenv/enumstr.cc
+ libs/cmdenv/heap.cc
+ libs/envir/akoutvectormgr.cc
+ libs/envir/args.cc
+ libs/envir/cenvir.cc
+ libs/envir/cinifile.cc
+ libs/envir/filemgrs.cc
+ libs/envir/main.cc
+ libs/envir/omnetapp.cc
+ libs/envir/patmatch.cc
+ libs/envir/platdep.cc
+ libs/envir/seeds.cc
+ libs/envir/slaveapp.cc
+ libs/envir/speedmtr.cc
+ libs/sim/carray.cc
+ libs/sim/cchannel.cc
+ libs/sim/ccoroutine.cc
+ libs/sim/cdensity.cc
+ libs/sim/cdetect.cc
+ libs/sim/cdispstr.cc
+ libs/sim/cenum.cc
+ libs/sim/cexception.cc
+ libs/sim/cfsm.cc
+ libs/sim/cgate.cc
+ libs/sim/chead.cc
+ libs/sim/chist.cc
+ libs/sim/cksplit.cc
+ libs/sim/cllist.cc
+ libs/sim/cmessage.cc
+ libs/sim/cmodule.cc
+ libs/sim/cmsgheap.cc
+ libs/sim/cnetmod.cc
+ libs/sim/cobject.cc
+ libs/sim/coutvect.cc
+ libs/sim/cpacket.cc
+ libs/sim/cpar.cc
+ libs/sim/cpsquare.cc
+ libs/sim/cqueue.cc
+ libs/sim/csimul.cc
+ libs/sim/cstat.cc
+ libs/sim/cstruct.cc
+ libs/sim/ctopo.cc
+ libs/sim/ctypes.cc
+ libs/sim/cvarhist.cc
+ libs/sim/cwatch.cc
+ libs/sim/distrib.cc
+ libs/sim/errmsg.cc
+ libs/sim/onstartup.cc
+ libs/sim/random.cc
+ libs/sim/std/netpack.cc
+ libs/sim/task.cc
+ libs/sim/util.cc
+ libs/spec/spec_qsort.cc
+ MACAddress.cc
+ MACAddress_m.cc
+ MACRelayUnit_n.cc
+ MACRelayUnitBase.cc
+ MACRelayUnitNP.cc
+ MACRelayUnitNP_n.cc
+ MACRelayUnitPP.cc
+ MACRelayUnitPP_n.cc
+ Networks_n.cc
+ utils.cc
+)
+set(Source "")
+foreach(FILENAME ${SourceNames})
+ list(APPEND Source ${BENCHMARK_DIR}/src/${FILENAME})
+endforeach()
+
+macro(test_input run_type)
+ llvm_test_run(RUN_TYPE ${run_type}
+ -f ${BENCHMARK_DIR}/data/${run_type}/input/omnetpp.ini
+ > ${CMAKE_CURRENT_BINARY_DIR}/omnetpp.log
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ -r 0.00001 -a 0.000001
+ ${BENCHMARK_DIR}/data/${run_type}/output/omnetpp.log
+ ${CMAKE_CURRENT_BINARY_DIR}/omnetpp.log
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ -r 0.00001 -a 0.000001
+ ${BENCHMARK_DIR}/data/${run_type}/output/omnetpp.sca
+ ${CMAKE_CURRENT_BINARY_DIR}/omnetpp.sca
+ )
+endmacro()
+
+test_input(test)
+test_input(train)
+test_input(ref)
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,20 @@
+macro(test_input run_type input output)
+ llvm_test_run(RUN_TYPE ${run_type}
+ ${input}
+ > ${CMAKE_CURRENT_BINARY_DIR}/${output}
+ WORKDIR ${BENCHMARK_DIR}/data/${run_type}/input
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ -r 0.001
+ ${BENCHMARK_DIR}/data/${run_type}/output/${output}
+ ${CMAKE_CURRENT_BINARY_DIR}/${output}
+ )
+endmacro()
+
+test_input(test lake.cfg lake.out)
+test_input(train BigLakes1024.cfg BigLakes1024.out)
+test_input(train rivers1.cfg rivers1.out)
+test_input(ref BigLakes2048.cfg BigLakes2048.out)
+test_input(ref rivers.cfg rivers.out)
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,43 @@
+add_definitions(
+ -DAPP_NO_THREADS
+ -DXALAN_INMEM_MSG_LOADER
+ -DPROJ_XMLPARSER
+ -DPROJ_XMLUTIL
+ -DPROJ_PARSERS
+ -DPROJ_SAX4C
+ -DPROJ_SAX2
+ -DPROJ_DOM
+ -DPROJ_VALIDATORS
+ -DXML_USE_NATIVE_TRANSCODER
+ -DXML_USE_INMEM_MESSAGELOADER
+)
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${BENCHMARK_DIR}/src
+ ${BENCHMARK_DIR}/src/xercesc
+ ${BENCHMARK_DIR}/src/xercesc/dom
+ ${BENCHMARK_DIR}/src/xercesc/dom/impl
+ ${BENCHMARK_DIR}/src/xercesc/sax
+ ${BENCHMARK_DIR}/src/xercesc/util/MsgLoaders/InMemory
+ ${BENCHMARK_DIR}/src/xercesc/util/Transcoders/Iconv
+ ${BENCHMARK_DIR}/src/xalanc/include
+)
+
+macro(test_input run_type input output)
+ llvm_test_run(RUN_TYPE ${run_type}
+ -v ${input} xalanc.xsl
+ > ${CMAKE_CURRENT_BINARY_DIR}/${output}
+ WORKDIR ${BENCHMARK_DIR}/data/${run_type}/input
+ )
+ llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
+ -r 0.001
+ ${BENCHMARK_DIR}/data/${run_type}/output/${output}
+ ${CMAKE_CURRENT_BINARY_DIR}/${output}
+ )
+endmacro()
+
+test_input(test test.xml test.out)
+test_input(train allbooks.xml train.out)
+test_input(ref t5.xml ref.out)
+
+llvm_multisource()
Added: test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/ppc/endian.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/ppc/endian.h?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/ppc/endian.h (added)
+++ test-suite/trunk/External/SPEC/CINT2006/483.xalancbmk/ppc/endian.h Mon Jan 11 13:37:25 2016
@@ -0,0 +1,6 @@
+// Workaround for the benchmark trying to include <ppc/endian.h> on OS X.
+// This file is not available anymore for some time, anyway we just need the 3
+// endian defines.
+#define __BYTE_ORDER__ __BYTE_ORDER
+#define __ORDER_LITTLE_ENDIAN__ __LITTLE_ENDIAN
+#define __ORDER_BIT_ENDIAN__ __BIG_ENDIAN
Added: test-suite/trunk/External/SPEC/CINT2006/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/CMakeLists.txt?rev=257370&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/CMakeLists.txt (added)
+++ test-suite/trunk/External/SPEC/CINT2006/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -0,0 +1,54 @@
+list(APPEND CPPFLAGS -DSPEC_CPU)
+
+if(TARGET_OS STREQUAL "Darwin")
+ list(APPEND CPPFLAGS -DSPEC_CPU_MACOSX)
+elseif(TARGET_OS STREQUAL "Linux")
+ list(APPEND CPPFLAGS -DSPEC_CPU_LINUX)
+endif()
+
+if(ARCH STREQUAL "x86")
+ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ list(APPEND CPPFLAGS -DSPEC_CPU_X64)
+ else()
+ list(APPEND CPPFLAGS -DSPEC_CPU_IA32)
+ endif()
+endif()
+
+include(TestBigEndian)
+test_big_endian(IS_BIGENDIAN)
+if(IS_BIGENDIAN)
+ list(APPEND CPPFLAGS -DSPEC_CPU_BIGENDIAN)
+else()
+ list(APPEND CPPFLAGS -DSPEC_CPU_LITTLEENDIAN)
+endif()
+
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ list(APPEND CPPFLAGS -DSPEC_CPU_LP64)
+endif()
+
+macro(cpu2006_subdir)
+ foreach(BENCHMARK ${ARGN})
+ set(BENCHMARK_DIR ${TEST_SUITE_SPEC2006_ROOT}/benchspec/CPU2006/${BENCHMARK})
+ set(PROG ${BENCHMARK})
+ file(GLOB Source ${BENCHMARK_DIR}/src/*.c ${BENCHMARK_DIR}/src/*.cpp)
+ if(NOT DEFINED TEST_SUITE_RUN_TYPE)
+ set(TEST_SUITE_RUN_TYPE "train")
+ endif()
+ llvm_add_subdirectories(${BENCHMARK})
+ endforeach()
+endmacro()
+
+cpu2006_subdir(
+ 400.perlbench
+ 401.bzip2
+ 403.gcc
+ 429.mcf
+ 445.gobmk
+ 456.hmmer
+ 458.sjeng
+ 462.libquantum
+ 464.h264ref
+ 471.omnetpp
+ 473.astar
+ 483.xalancbmk
+)
Modified: test-suite/trunk/External/SPEC/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CMakeLists.txt?rev=257370&r1=257369&r2=257370&view=diff
==============================================================================
--- test-suite/trunk/External/SPEC/CMakeLists.txt (original)
+++ test-suite/trunk/External/SPEC/CMakeLists.txt Mon Jan 11 13:37:25 2016
@@ -14,4 +14,9 @@ if(TEST_SUITE_SPEC2000_ROOT)
llvm_add_subdirectories(CFP2000 CINT2000)
endif()
+llvm_externals_find(TEST_SUITE_SPEC2006_ROOT "speccpu2006" "SPEC CPU2006")
+if(TEST_SUITE_SPEC2006_ROOT)
+ llvm_add_subdirectories(CINT2006)
+endif()
+
file(COPY lit.local.cfg DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
More information about the llvm-commits
mailing list