From 30d132946e25ffa52fcd4ef65bb2925c22d41c43 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 25 Jul 2007 20:07:59 +0000 Subject: [PATCH] prettify fehler51 [r15353] --- ir/be/test/fehler51.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ir/be/test/fehler51.c b/ir/be/test/fehler51.c index e5bbcd615..983f9903a 100644 --- a/ir/be/test/fehler51.c +++ b/ir/be/test/fehler51.c @@ -16,12 +16,14 @@ float ueberlappung(); //void vadd_loop(); //void array_test(int *a[]); -main() +int main() { int a[5][5]; a[1][1] = 20; + srand(12345); + printf("1. vload -> vadd -> vstore\n===================\n\n"); ueberlappung(); @@ -29,6 +31,8 @@ main() // vadd_loop(); // array_test(a); + + return 0; } float ueberlappung() @@ -44,6 +48,7 @@ float ueberlappung() { a[i] = rand() % 10; b[i] = rand() % 10; + c[i] = rand() % 10; d[i] = rand() % 10; } @@ -57,7 +62,7 @@ float ueberlappung() // Usage to prevent optimizations other than SIMD opt for(i = 0; i < 4; i++) - printf("%d %d %d\n", a[i], b[i], c[i], d[i]); + printf("%f %f %f %f\n", a[i], b[i], c[i], d[i]); printf("\n"); return(sp1 + sp2); } -- 2.20.1