[llvm-commits] [test-suite] r107082 - in /test-suite/trunk/SingleSource/Benchmarks/Misc: perlin.c perlin.reference_output.small

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Jun 28 15:10:00 PDT 2010


Author: stoklund
Date: Mon Jun 28 17:10:00 2010
New Revision: 107082

URL: http://llvm.org/viewvc/llvm-project?rev=107082&view=rev
Log:
Speed up test for SMALL_TEST_SIZE

Added:
    test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.reference_output.small
Modified:
    test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.c

Modified: test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.c?rev=107082&r1=107081&r2=107082&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.c Mon Jun 28 17:10:00 2010
@@ -65,9 +65,15 @@
   init();
   
   double x, y, z, sum = 0.0;
+#ifdef SMALL_PROBLEM_SIZE
+  for (x = -11352.57; x < 23561.57; x += 1.235)
+    for (y = -346.1235; y < 124.124; y += 2.4325)
+      for (z = -156.235; y < 23.2345; y += 2.45)
+#else
   for (x = -11352.57; x < 23561.57; x += .1235)
     for (y = -346.1235; y < 124.124; y += 1.4325)
       for (z = -156.235; y < 23.2345; y += 2.45)
+#endif
         sum += noise(x, y, z);
   
   printf("%e\n", sum);

Added: test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.reference_output.small
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.reference_output.small?rev=107082&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.reference_output.small (added)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc/perlin.reference_output.small Mon Jun 28 17:10:00 2010
@@ -0,0 +1,2 @@
+2.748063e+01
+exit 0





More information about the llvm-commits mailing list