[llvm-commits] [test-suite] r171018 - /test-suite/trunk/SingleSource/UnitTests/Vectorizer/gcc-loops.cpp
Nadav Rotem
nrotem at apple.com
Sun Dec 23 22:31:45 PST 2012
Author: nadav
Date: Mon Dec 24 00:31:45 2012
New Revision: 171018
URL: http://llvm.org/viewvc/llvm-project?rev=171018&view=rev
Log:
Add example21 to the test.
Modified:
test-suite/trunk/SingleSource/UnitTests/Vectorizer/gcc-loops.cpp
Modified: test-suite/trunk/SingleSource/UnitTests/Vectorizer/gcc-loops.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vectorizer/gcc-loops.cpp?rev=171018&r1=171017&r2=171018&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vectorizer/gcc-loops.cpp (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vectorizer/gcc-loops.cpp Mon Dec 24 00:31:45 2012
@@ -226,14 +226,13 @@
__attribute__((noinline))
-int example21(int *b, int n)
-{
+void example21(int *b, int n) {
int i, a = 0;
for (i = n-1; i >= 0; i--)
a += b[i];
- return a;
+ b[0] = a;
}
__attribute__((noinline))
@@ -378,6 +377,7 @@
BENCH("Example11", example11(), Mi*2, digest_memory(&d[0], &d[N]));
BENCH("Example12", example12(), Mi*2, digest_memory(&a[0], &a[N]));
BENCH("Example23", example23(usa,ua), Mi*2, digest_memory(&usa[0], &usa[256]));
+ BENCH("Example21", example21(ia, N), Mi, digest_memory(&ia[0], &ia[N]));
BENCH("Example24", example24(2,4), Mi*2, 0);
BENCH("Example25", example25(), Mi*2, digest_memory(&dj[0], &dj[N]));
More information about the llvm-commits
mailing list