Tamar Christina writes:
> Hi All,
>
> The following loop does a conditional reduction using an add:
>
> #include
>
> int32_t f (int32_t *restrict array, int len, int min)
> {
> int32_t iSum = 0;
>
> for (int i=0; i if (array[i] >= min)
>iSum += array[i];
> }
> return iSum;
> }
Hi All,
The following loop does a conditional reduction using an add:
#include
int32_t f (int32_t *restrict array, int len, int min)
{
int32_t iSum = 0;
for (int i=0; i= min)
iSum += array[i];
}
return iSum;
}
for this we currently generate:
mov z1.b, #0
mo