Changeset 6092


Ignore:
Timestamp:
Jun 15, 2018, 5:31:26 AM (3 months ago)
Author:
cameron
Message:

Generic esimd_merge functions for fw = 1, 2

File:
1 edited

Legend:

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

    r6087 r6092  
    425425   
    426426Value * IDISA_Builder::esimd_mergeh(unsigned fw, Value * a, Value * b) {   
    427     if (fw == 4) {
     427    if (fw < 8) {
    428428        Value * abh = simd_or(simd_and(simd_himask(fw*2), b), simd_srli(32, simd_and(simd_himask(fw*2), a), fw));
    429429        Value * abl = simd_or(simd_slli(32, simd_and(simd_lomask(fw*2), b), fw), simd_and(simd_lomask(fw*2), a));
     
    441441
    442442Value * IDISA_Builder::esimd_mergel(unsigned fw, Value * a, Value * b) {
    443     if (fw == 4) {
     443    if (fw < 8) {
    444444        Value * abh = simd_or(simd_and(simd_himask(fw*2), b), simd_srli(32, simd_and(simd_himask(fw*2), a), fw));
    445445        Value * abl = simd_or(simd_slli(32, simd_and(simd_lomask(fw*2), b), fw), simd_and(simd_lomask(fw*2), a));
Note: See TracChangeset for help on using the changeset viewer.