Changeset 5011


Ignore:
Timestamp:
Apr 9, 2016, 7:46:24 PM (20 months ago)
Author:
cameron
Message:

Fix u8u16 for block size 128

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/p2s_kernel.cpp

    r5009 r5011  
    128128   
    129129    Value * partial_counts = iBuilder->fwCast(UTF_16_units_per_register, iBuilder->CreateBlockAlignedLoad(kBuilder->getInputStream(16)));
     130    if (UTF_16_units_per_register < 16) {
     131        partial_counts = iBuilder->CreateZExt(partial_counts, VectorType::get(iBuilder->getIntNTy(16), iBuilder->getBitBlockWidth()/UTF_16_units_per_register));
     132    }
    130133    Value * byte_counts = iBuilder->CreateAdd(partial_counts, partial_counts); // double the code unit count to get byte counts
    131134   
Note: See TracChangeset for help on using the changeset viewer.