[llvm-commits] [test-suite] r94689 - /test-suite/trunk/SingleSource/Benchmarks/Misc/fp-convert.c
Jim Grosbach
grosbach at apple.com
Wed Jan 27 13:43:47 PST 2010
Author: grosbach
Date: Wed Jan 27 15:43:47 2010
New Revision: 94689
URL: http://llvm.org/viewvc/llvm-project?rev=94689&view=rev
Log:
Reduce iteration count for SMALL_PROBLEM_SIZE
Modified:
test-suite/trunk/SingleSource/Benchmarks/Misc/fp-convert.c
Modified: test-suite/trunk/SingleSource/Benchmarks/Misc/fp-convert.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc/fp-convert.c?rev=94689&r1=94688&r2=94689&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc/fp-convert.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc/fp-convert.c Wed Jan 27 15:43:47 2010
@@ -10,6 +10,12 @@
return accumulator;
}
+#ifdef SMALL_PROBLEM_SIZE
+#define COUNT 100000
+#else
+#define COUNT 500000
+#endif
+
int main(int argc, char *argv[]) {
int i, j;
float x[2048];
@@ -18,7 +24,7 @@
float a = 0.0f;
float b = 1.0f;
- for (i=0; i<500000; ++i) {
+ for (i=0; i<COUNT; ++i) {
if (i % 10) {
a = 0.0f;
b = 1.0f;
More information about the llvm-commits
mailing list