[test-suite] r203597 - Disable timing for MultiSource/Benchmarks/SciMark2-C

Robert Lytton robert at xmos.com
Tue Mar 11 11:51:38 PDT 2014


Author: rlytton
Date: Tue Mar 11 13:51:38 2014
New Revision: 203597

URL: http://llvm.org/viewvc/llvm-project?rev=203597&view=rev
Log:
Disable timing for  MultiSource/Benchmarks/SciMark2-C

Return dummy stopwatch timings for all targets.
Otherwise the timer may cause inconsistency between platforms.
(XCore timer was wrapping)

Modified:
    test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/Stopwatch.c

Modified: test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/Stopwatch.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/Stopwatch.c?rev=203597&r1=203596&r2=203597&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/Stopwatch.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/Stopwatch.c Tue Mar 11 13:51:38 2014
@@ -3,7 +3,9 @@
 
 double seconds()
 {
-        return ((double) clock()) / (double) CLOCKS_PER_SEC; 
+    // Disable timing.
+    static double t = 0.0;
+    return ++t;
 }
 
 void Stopwtach_reset(Stopwatch Q)





More information about the llvm-commits mailing list