Changeset 4238 for trunk


Ignore:
Timestamp:
Oct 14, 2014, 7:13:42 PM (4 years ago)
Author:
linmengl
Message:

add test code for long stream addition i256, test passed.

Location:
trunk/lib_ir
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib_ir/CMakeLists.txt

    r4232 r4238  
    102102# `make check` also depends on test_pack_avx2
    103103if (USE_AVX2)
    104   add_dependencies(check test_pack_avx2)
     104  add_dependencies(check test_pack_avx2 test_llc_256)
    105105endif (USE_AVX2)
    106106
  • trunk/lib_ir/gen/CMakeLists.txt

    r3977 r4238  
    11include_directories(${PROJECT_SOURCE_DIR})
     2set(CMAKE_CXX_COMPILER "/usr/bin/g++")
     3set(CMAKE_C_COMPILER "/usr/bin/gcc")
    24
    35add_executable(test_llc test_llc.cpp llc_func_optimized.o)
     6
     7if (USE_AVX2)
     8add_executable(test_llc_256 test_llc_256.cpp llc_func_256_optimized.o)
     9set_target_properties(test_llc_256
     10  PROPERTIES
     11  COMPILE_FLAGS "-DBLOCK_SIZE=256 -mavx2 -m64 -march=core-avx2 -fabi-version=6"
     12  )
     13
     14add_custom_command(
     15  OUTPUT llc_func_256_optimized.o llc_func_256_optimized.bc
     16  COMMAND ${LLVM_OPT} -O3 -mattr=+avx2,+bmi2 ${CMAKE_CURRENT_SOURCE_DIR}/llc_func_256.ll -o llc_func_256_optimized.bc
     17  COMMAND ${LLVM_LLC} -O3 -mattr=+avx2,+bmi2 -filetype=obj llc_func_256_optimized.bc
     18  DEPENDS llc_func_256.ll)
     19
     20add_test(
     21  NAME ctest_llc_256
     22  COMMAND ./test_llc_256)
     23endif()
    424
    525add_custom_command(
Note: See TracChangeset for help on using the changeset viewer.