Changeset 5774


Ignore:
Timestamp:
Dec 11, 2017, 4:15:41 AM (17 months ago)
Author:
cameron
Message:

Zeroextend print register bytes to i32, before calling printf

File:
1 edited

Legend:

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

    r5732 r5774  
    5555        value = builder.CreateBitCast(value, byteVectorType);
    5656        for(unsigned i = (mBitBlockWidth / 8); i != 0; --i) {
    57             args.push_back(builder.CreateExtractElement(value, builder.getInt32(i - 1)));
     57            args.push_back(builder.CreateZExt(builder.CreateExtractElement(value, builder.getInt32(i - 1)), builder.getInt32Ty()));
    5858        }
    5959        builder.CreateCall(GetPrintf(), args);
Note: See TracChangeset for help on using the changeset viewer.