blob: 0a3f95fa12484f66f6694adb2abc64f449c68f38 [file] [log] [blame]
<%inherit file="base.tpl.cpp"/>\
<%namespace name="tests" file="opivv_opivx_test.tpl.cpp"/>
<%
import numpy as np
src1, src2, rs1 = parent.module.get_test_inputs(np.int32, N=5)
tmp_src2 = src2 & (np.int32(0).itemsize * 8 -1)
ref_vv = np.right_shift(src1.astype(np.uint32), tmp_src2).astype(np.int32)
tmp_rs1 = rs1 & (np.int32(0).itemsize * 8 - 1)
ref_vx = np.right_shift(src1.astype(np.uint32), tmp_rs1).astype(np.int32)
%>\
${tests.test_opivv_opivx("int32_t", op, src1, src2, rs1, ref_vv, ref_vx)}