CGRAME / CGRA-ME-ISSUES

CGRA-ME is an open-source framework for modelling and exploring coarse grain reconfigurable architectures and CAD.
3 stars 0 forks source link

DFG gen fail with select inst in operandTypeFor #7

Open KelvinChung2000 opened 6 months ago

KelvinChung2000 commented 6 months ago

I am trying to run the following benchmark:

int main(){

    #define N 9

    int A[N];
    int i;
    int tmp;
    int c   = 5;
    int sum = 0;

    for(i = 0; i < N; i++) {
        A[i] = i;
    }

    for (i = 0; i < N; i++) {
        //DFGLoop: loop
        tmp = A[i] * c;
        if (tmp > 5) {
            sum = tmp + sum;
        }
    }

    return sum;
}

The DFG gen fails with Unhandled case for operand setting, and I have done some debugging; it is due to operandTypeFor not handling the SELECT instruction.