Changeset 5719 for icGREP


Ignore:
Timestamp:
Oct 31, 2017, 2:35:28 PM (16 months ago)
Author:
cameron
Message:

Fix for long advance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/idisa_avx_builder.cpp

    r5715 r5719  
    229229            Value * bits = CreateCall(PEXT_f, {s, ix});  // All these bits are shifted out (appended to carry).
    230230            result = mvmd_insert(bitWidth, result, CreateCall(PDEP_f, {mvmd_extract(bitWidth, carry, 0), ix}), i);
    231             carry = CreateLShr(carry, CreateZExt(ix_popcnt, iBitBlock)); // Remove the carry bits consumed, make room for new bits.
    232             carryOut = CreateOr(carryOut, CreateShl(CreateZExt(bits, iBitBlock), generated));
     231            carry = CreateLShr(carry, CreateZExt(ix_popcnt, iBitBlock)); // Remove the carry bits consumed.
     232            carryOut = CreateOr(carryOut, CreateShl(CreateZExt(bits, iBitBlock), CreateZExt(generated, iBitBlock)));
    233233            generated = CreateAdd(generated, ix_popcnt);
    234234        }
Note: See TracChangeset for help on using the changeset viewer.