[llvm-commits] CVS: llvm-test/SingleSource/Benchmarks/CoyoteBench/almabench.c fftbench.cpp huffbench.c

Lauro Ramos Venancio lauro.venancio at gmail.com
Thu May 3 09:56:39 PDT 2007



Changes in directory llvm-test/SingleSource/Benchmarks/CoyoteBench:

almabench.c updated: 1.1 -> 1.2
fftbench.cpp updated: 1.1 -> 1.2
huffbench.c updated: 1.1 -> 1.2
---
Log message:

Implement SMALL_PROBLEM_SIZE.


---
Diffs of the changes:  (+17 -0)

 almabench.c  |    8 ++++++++
 fftbench.cpp |    4 ++++
 huffbench.c  |    5 +++++
 3 files changed, 17 insertions(+)


Index: llvm-test/SingleSource/Benchmarks/CoyoteBench/almabench.c
diff -u llvm-test/SingleSource/Benchmarks/CoyoteBench/almabench.c:1.1 llvm-test/SingleSource/Benchmarks/CoyoteBench/almabench.c:1.2
--- llvm-test/SingleSource/Benchmarks/CoyoteBench/almabench.c:1.1	Sat Mar  4 16:35:18 2006
+++ llvm-test/SingleSource/Benchmarks/CoyoteBench/almabench.c	Thu May  3 11:55:46 2007
@@ -53,10 +53,18 @@
 static const int TEST_LOOPS  =     1;
 #endif
 #else
+#ifdef SMALL_PROBLEM_SIZE
+static const int TEST_LOOPS  =    1;
+#else
 static const int TEST_LOOPS  =    20;
 #endif
+#endif
 
+#ifdef SMALL_PROBLEM_SIZE
+static const int TEST_LENGTH = 3652;
+#else
 static const int TEST_LENGTH = 36525;
+#endif
 
 // sin and cos of j2000 mean obliquity (iau 1976)
 static const double sineps = 0.3977771559319137;


Index: llvm-test/SingleSource/Benchmarks/CoyoteBench/fftbench.cpp
diff -u llvm-test/SingleSource/Benchmarks/CoyoteBench/fftbench.cpp:1.1 llvm-test/SingleSource/Benchmarks/CoyoteBench/fftbench.cpp:1.2
--- llvm-test/SingleSource/Benchmarks/CoyoteBench/fftbench.cpp:1.1	Sat Mar  4 16:35:18 2006
+++ llvm-test/SingleSource/Benchmarks/CoyoteBench/fftbench.cpp	Thu May  3 11:55:46 2007
@@ -43,8 +43,12 @@
 static const int TEST_SIZE   =   131072;
 #endif
 #else
+#ifdef SMALL_PROBLEM_SIZE
+static const int TEST_SIZE   =  50000;
+#else
 static const int TEST_SIZE   =  2097152;
 #endif
+#endif
 
 //---------------------------------------------------------------------------
 // embedded random number generator; ala Park and Miller


Index: llvm-test/SingleSource/Benchmarks/CoyoteBench/huffbench.c
diff -u llvm-test/SingleSource/Benchmarks/CoyoteBench/huffbench.c:1.1 llvm-test/SingleSource/Benchmarks/CoyoteBench/huffbench.c:1.2
--- llvm-test/SingleSource/Benchmarks/CoyoteBench/huffbench.c:1.1	Sat Mar  4 16:35:18 2006
+++ llvm-test/SingleSource/Benchmarks/CoyoteBench/huffbench.c	Thu May  3 11:55:46 2007
@@ -71,9 +71,14 @@
 static const int TEST_SIZE =  5000000;
 #endif
 #else
+#ifdef SMALL_PROBLEM_SIZE
+static const int NUM_LOOPS =        2;
+static const int TEST_SIZE =  5000000;
+#else
 static const int NUM_LOOPS =       30;
 static const int TEST_SIZE = 10000000;
 #endif
+#endif
 
 typedef unsigned long bits32;
 typedef unsigned char byte;






More information about the llvm-commits mailing list