Changeset 6051


Ignore:
Timestamp:
May 19, 2018, 2:09:27 PM (5 weeks ago)
Author:
cameron
Message:

IDISA testing

Location:
icGREP/icgrep-devel/icgrep
Files:
3 edited

Legend:

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

    r6050 r6051  
    388388        Value * abh = simd_or(simd_and(simd_himask(fw*2), a), simd_srli(32, simd_and(simd_himask(fw*2), b), fw));
    389389        Value * abl = simd_or(simd_slli(32, simd_and(simd_lomask(fw*2), a), fw), simd_and(simd_lomask(fw*2), b));
    390         return esimd_mergeh(fw * 2, abh, abl);
     390        return esimd_mergeh(fw * 2, abl, abh);
    391391    }
    392392    if (fw < 4) report_fatal_error("Unsupported field width: mergeh " + std::to_string(fw));
     
    404404        Value * abh = simd_or(simd_and(simd_himask(fw*2), a), simd_srli(32, simd_and(simd_himask(fw*2), b), fw));
    405405        Value * abl = simd_or(simd_slli(32, simd_and(simd_lomask(fw*2), a), fw), simd_and(simd_lomask(fw*2), b));
    406         return esimd_mergel(fw * 2, abh, abl);
     406        return esimd_mergel(fw * 2, abl, abh);
    407407    }
    408408    if (fw < 4) report_fatal_error("Unsupported field width: mergel " + std::to_string(fw));
  • icGREP/icgrep-devel/icgrep/idisa_test.cpp

    r6050 r6051  
    6969    Value * operand1 = kb->fwCast(mTestFw, kb->loadInputStreamBlock("operand1", ZeroConst, blockOffsetPhi));
    7070    Value * operand2 = kb->fwCast(mTestFw, kb->loadInputStreamBlock("operand2", ZeroConst, blockOffsetPhi));
    71     kb->CallPrintRegister("operand1", operand1);
    72     kb->CallPrintRegister("operand2", operand2);
    7371    Value * result = nullptr;
    7472    if (mIdisaOperation == "simd_add") {
     
    119117        llvm::report_fatal_error("Binary operation " + mIdisaOperation + " is unknown to the IdisaBinaryOpTestKernel kernel.");
    120118    }
    121     kb->CallPrintRegister("result", result);
    122119    kb->storeOutputStreamBlock("result", ZeroConst, blockOffsetPhi, kb->bitCast(result));
    123120    Value * nextBlk = kb->CreateAdd(blockOffsetPhi, kb->getSize(1));
  • icGREP/icgrep-devel/icgrep/kernels/hex_convert.cpp

    r6050 r6051  
    3333        hexPack[0] = b->loadInputStreamPack("hexdata", ZERO, b->getInt32(2*i));
    3434        hexPack[1] = b->loadInputStreamPack("hexdata", ZERO, b->getInt32(2*i + 1));
    35         b->CallPrintRegister("hexPack[0]", hexPack[0]);
    36         b->CallPrintRegister("hexPack[1]", hexPack[1]);
    3735        Value * base_val[2];
    3836        for (unsigned j = 0; j < 2; j++) {
     
    4644        Value * binary_pack = b->bitCast(b->hsimd_packl(8, base_val[0], base_val[1]));
    4745        b->storeOutputStreamBlock("binary_data", ZERO, b->getInt32(i), binary_pack);
    48         b->CallPrintRegister("binary_pack", binary_pack);
    4946    }
    5047}
Note: See TracChangeset for help on using the changeset viewer.