[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Vector/build2.c

Lauro Ramos Venancio lauro.venancio at gmail.com
Fri May 4 14:43:37 PDT 2007



Changes in directory llvm-test/SingleSource/UnitTests/Vector:

build2.c updated: 1.1 -> 1.2
---
Log message:

Implement SMALL_PROBLEM_SIZE.


---
Diffs of the changes:  (+7 -1)

 build2.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm-test/SingleSource/UnitTests/Vector/build2.c
diff -u llvm-test/SingleSource/UnitTests/Vector/build2.c:1.1 llvm-test/SingleSource/UnitTests/Vector/build2.c:1.2
--- llvm-test/SingleSource/UnitTests/Vector/build2.c:1.1	Fri Apr 21 18:22:23 2006
+++ llvm-test/SingleSource/UnitTests/Vector/build2.c	Fri May  4 16:43:19 2007
@@ -62,7 +62,13 @@
   v4f32 y = {0.0f, 0.0f, 0.0f, 0.0f};
   v4f32 z = {0.0f, 0.0f, 0.0f, 0.0f};
 
-  for (j = 0; j < 100; ++j) {
+#ifdef SMALL_PROBLEM_SIZE
+#define LENGTH 2
+#else
+#define LENGTH 100
+#endif
+
+  for (j = 0; j < LENGTH; ++j) {
     x = (v4f32){0.0f, 0.0f, 0.0f, 0.0f};
     y = (v4f32){0.0f, 0.0f, 0.0f, 0.0f};
     z = (v4f32){0.0f, 0.0f, 0.0f, 0.0f};






More information about the llvm-commits mailing list