blob: 95645523ad8a0c43df832722820df825fe94bffe [file] [log] [blame]
cmake_minimum_required(VERSION 3.10)
enable_language(ASM)
add_library(test_v_helpers
test_v_helpers.cpp)
target_include_directories(test_v_helpers PUBLIC include)
target_link_libraries(test_v_helpers PUBLIC pw_unit_test)
target_compile_options(test_v_helpers PUBLIC
${VEC_DEFAULT_COPTS}
)
vec_cc_generated_test(
NAME
vsub
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vrsub
TEMPLATE
opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=256K
)
vec_cc_generated_test(
NAME
vadd
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=256K
)
vec_cc_generated_test(
NAME
vor
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=256K
)
vec_cc_generated_test(
NAME
vxor
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=256K
)
vec_cc_generated_test(
NAME
vmin
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vminu
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vmul
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vmulh
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vmulhu
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vdiv
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vdivu
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vrem
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vremu
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vwadd
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vwaddu
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vwsub
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vwsubu
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vmax
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vand
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=200K
)
vec_cc_generated_test(
NAME
vmaxu
TEMPLATE
opivv_opivx_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vsext
TEMPLATE
vxunary0_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vzext
TEMPLATE
vxunary0_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_generated_test(
NAME
vsll
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=192K
)
vec_cc_generated_test(
NAME
vsrl
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=192K
)
vec_cc_generated_test(
NAME
vsra
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=192K
)
vec_cc_generated_test(
NAME
vnsrl
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=192K
)
vec_cc_generated_test(
NAME
vnsra
TEMPLATE
opivv_opivx_opivi_test.tpl.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=192K
)
vec_cc_test(
NAME
vsetvl_test
SRCS
vsetvl_test.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)
vec_cc_test(
NAME
vle_vse_test
SRCS
vle_vse_test.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
TIMEOUT
40
)
vec_cc_test(
NAME
vmv_test
SRCS
vmv_test.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
TIMEOUT
40
)
vec_cc_test(
NAME
vlnr_vsnr_test
SRCS
vlnr_vsnr_test.cpp
LINKOPTS
-Xlinker --defsym=__itcm_length__=128K
)