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

IDISA testing

File:
1 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));
Note: See TracChangeset for help on using the changeset viewer.