[llvm-commits] [test-suite] r165695 - in /test-suite/trunk/MultiSource/Benchmarks/TSVC: GlobalDataFlow-dbl/GlobalDataFlow-dbl.reference_output tsc.inc
Hal Finkel
hfinkel at anl.gov
Wed Oct 10 20:27:14 PDT 2012
Author: hfinkel
Date: Wed Oct 10 22:27:14 2012
New Revision: 165695
URL: http://llvm.org/viewvc/llvm-project?rev=165695&view=rev
Log:
Fix TSVC test s451.
When sinf() and cosf() are used in the double-precision tests, the
result is sensitive to rounding differences between systems (Darwin vs. Linux
specifically). Using the double precision functions seems to solve this problem
[the original benchmark did not have a double-precision mode].
Modified:
test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/GlobalDataFlow-dbl.reference_output
test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc
Modified: test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/GlobalDataFlow-dbl.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/GlobalDataFlow-dbl.reference_output?rev=165695&r1=165694&r2=165695&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/GlobalDataFlow-dbl.reference_output (original)
+++ test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/GlobalDataFlow-dbl.reference_output Wed Oct 10 22:27:14 2012
@@ -7,7 +7,7 @@
S151 0.00 32010.793712165
S152 0.00 36147.096314216
S431 0.00 88749.147198112
-S451 0.00 32009.980172276
+S451 0.00 32009.980080431
S452 0.00 32512.016
S471 0.00 64004.934708452
S4121 0.00 37674.914719811
Modified: test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc?rev=165695&r1=165694&r2=165695&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc (original)
+++ test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc Wed Oct 10 22:27:14 2012
@@ -4699,7 +4699,7 @@
for (int nl = 0; nl < ntimes/5; nl++) {
for (int i = 0; i < LEN; i++) {
- a[i] = sinf(b[i]) + cosf(c[i]);
+ a[i] = sin(b[i]) + cos(c[i]);
}
dummy(a, b, c, d, e, aa, bb, cc, 0.);
}
More information about the llvm-commits
mailing list