added sanity check assert

This commit is contained in:
Stanislav Shwartsman 2013-12-03 17:41:13 +00:00
parent 6d9b16e0f7
commit 18922fa1a3

View File

@ -168,6 +168,8 @@ void BX_CPU_C::avx512_write_regd_masked(bxInstruction_c *i, const BxPackedAvxReg
{
unsigned len = i->getVL();
BX_ASSERT(i->opmask() != 0);
if (i->isZeroMasking()) {
for (unsigned n=0; n < len; n++, mask >>= 4)
xmm_zero_blendps(&BX_READ_AVX_REG_LANE(i->dst(), n), &op->vmm128(n), mask);
@ -184,6 +186,8 @@ void BX_CPU_C::avx512_write_regq_masked(bxInstruction_c *i, const BxPackedAvxReg
{
unsigned len = i->getVL();
BX_ASSERT(i->opmask() != 0);
if (i->isZeroMasking()) {
for (unsigned n=0; n < len; n++, mask >>= 2)
xmm_zero_blendpd(&BX_READ_AVX_REG_LANE(i->dst(), n), &op->vmm128(n), mask);