llvm-project/polly/test/CodeGen/OpenMP/two_loop.c

25 lines
307 B
C

#include <string.h>
#define N 10240000
float A[N];
float B[N];
void loop1_openmp() {
for (int i = 0; i <= N; i++)
A[i] = 0;
for (int j = 0; j <= N; j++)
B[j] = 0;
}
int main () {
int i;
memset(A, 0, sizeof(float) * N);
memset(B, 1, sizeof(float) * N);
loop1_openmp();
return 0;
}