[llvm-commits] [test-suite] r165696 - in /test-suite/trunk/MultiSource/Benchmarks/TSVC: GlobalDataFlow-flt/tsc.c tsc.inc
Hal Finkel
hfinkel at anl.gov
Wed Oct 10 20:33:28 PDT 2012
Author: hfinkel
Date: Wed Oct 10 22:33:28 2012
New Revision: 165696
URL: http://llvm.org/viewvc/llvm-project?rev=165696&view=rev
Log:
Use float trig. funcs. in TSCV test s451 in float mode.
There is no need to change the float version of the test while
fixing the double-precision version.
Modified:
test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/tsc.c
test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc
Modified: test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/tsc.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/tsc.c?rev=165696&r1=165695&r2=165696&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/tsc.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/tsc.c Wed Oct 10 22:33:28 2012
@@ -2,5 +2,6 @@
#define ALIGNMENT 16
#include "../tests.h"
#define TESTS GLOBAL_DATA_FLOW
+#define USE_FLOAT_TRIG
#include "../tsc.inc"
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=165696&r1=165695&r2=165696&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc (original)
+++ test-suite/trunk/MultiSource/Benchmarks/TSVC/tsc.inc Wed Oct 10 22:33:28 2012
@@ -4699,7 +4699,11 @@
for (int nl = 0; nl < ntimes/5; nl++) {
for (int i = 0; i < LEN; i++) {
+#ifdef USE_FLOAT_TRIG
+ a[i] = sinf(b[i]) + cosf(c[i]);
+#else
a[i] = sin(b[i]) + cos(c[i]);
+#endif
}
dummy(a, b, c, d, e, aa, bb, cc, 0.);
}
More information about the llvm-commits
mailing list