15 lines
374 B
C
15 lines
374 B
C
#include "test.h"
|
|
|
|
void test1(float *__restrict a, float *__restrict b, float *__restrict c, int N) {
|
|
__builtin_assume(N == 1024);
|
|
a = (float *)__builtin_assume_aligned(a, 32);
|
|
b = (float *)__builtin_assume_aligned(b, 32);
|
|
c = (float *)__builtin_assume_aligned(c, 32);
|
|
|
|
for (int i=0; i<I; i++) {
|
|
for (int j=0; j<N; j++) {
|
|
c[j] = a[j] + b[j];
|
|
}
|
|
}
|
|
}
|