Ignore:
Timestamp:
Jul 31, 2014, 8:41:10 PM (5 years ago)
Author:
linmengl
Message:

test out PEXT with s2p_ideal, put down results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib_ir/CMakeLists.txt

    r3938 r3939  
    11cmake_minimum_required (VERSION 2.8)
    22project (IR_Library)
     3
     4enable_testing()
    35
    46option (USE_AVX2 "Compile for Haswell arch with AVX2, BMI, BMI2")
     
    2527add_executable(test_pack test_pack.cpp s2p_optimized.o)
    2628
     29# test packh_2,4,8 only on avx2
     30if (USE_AVX2)
     31    add_executable(test_pack_avx2 test_pack_avx2.cpp s2p_optimized.o)
     32    add_test(
     33      NAME ctest_pack_avx2
     34      COMMAND ./test_pack_avx2)
     35endif (USE_AVX2)
     36
    2737include_directories("xmlwf/util" "xmlwf/lib")
    2838add_executable(xmlwf xmlwf/src/xmlwf.cpp s2p_optimized.o)
     
    4555  DEPENDS ${PROJECT_SOURCE_DIR}/s2p.ll)
    4656
    47 enable_testing()
    4857add_test(
    4958  NAME ctest_s2p
     
    6271  COMMAND ${CMAKE_CTEST_COMMAND}
    6372  DEPENDS test_s2p test_link test_pack xmlwf)
     73
     74# `make check` also depends on test_pack_avx2
     75if (USE_AVX2)
     76  add_dependencies(check test_pack_avx2)
     77endif (USE_AVX2)
    6478
    6579add_custom_target (perf_xmlwf
Note: See TracChangeset for help on using the changeset viewer.