[aarch64-port-dev ] Scalar reduction
Andrew Haley
aph at redhat.com
Thu Jun 25 09:24:49 UTC 2015
Do you know if int scalar reduction supposed to work yet?
This doesn't seem to be vectorized:
int sum(int[] a) {
int val = 0;
for(int elem: a)
val += elem;
return val;
}
but this is:
int[] sum(int[] a, int[] b, int[] result) {
for(int i = 0; i < a.length; i++)
result [i] = a[i] + b[i];
return result;
}
Hmmmm, doesn't seem to work on x86 either. Baffled.
Andrew.
More information about the aarch64-port-dev
mailing list