Changeset 6096


Ignore:
Timestamp:
Jun 15, 2018, 12:09:56 PM (3 months ago)
Author:
cameron
Message:

simd_fill fix

File:
1 edited

Legend:

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

    r6094 r6096  
    9090    const unsigned field_count = mBitBlockWidth/fw;
    9191    Type * singleFieldVecTy = VectorType::get(getIntNTy(fw), 1);
    92     Value * aVec = CreateBitCast(a, singleFieldVecTy);
     92    Value * aVec = CreateBitCast(CreateZExtOrTrunc(a, getIntNTy(fw)), singleFieldVecTy);
    9393    return CreateShuffleVector(aVec, UndefValue::get(singleFieldVecTy), Constant::getNullValue(VectorType::get(getInt32Ty(), field_count)));
    9494}
Note: See TracChangeset for help on using the changeset viewer.