more test added
[libfirm] / ir / be / test / max.c
index 6cb2230..4ef5749 100644 (file)
@@ -1,7 +1,7 @@
 #include <stdio.h>
 #include <limits.h>
 
-#define MAX (1 << 20)
+#define MAX (1 << 10)
 #define TRUNC 0xff
 #define MAX_SHOW TRUNC
 
@@ -34,12 +34,15 @@ void dequant_h263_inter_c(short *data, const short *coeff, const unsigned int qu
        }
 }
 
-int main(int argc){
+int main(int argc, char **argv){
   short cur[MAX];
   short ref[MAX];
-  int numofruns = 1000;
+  int numofruns = 30;
   int i,ii;
 
+  if(argc > 1)
+         numofruns = atoi(argv[1]);
+
   for (i = 0; i < numofruns; i++){
     /* Reset cache. Alles andere ist unrealistisch. */
     for(ii = 0; ii < MAX; ii++){