[llvm-commits] [test-suite] r156181 - /test-suite/trunk/SingleSource/UnitTests/Vector/constpool.c
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri May 4 10:15:37 PDT 2012
Author: stoklund
Date: Fri May 4 12:15:37 2012
New Revision: 156181
URL: http://llvm.org/viewvc/llvm-project?rev=156181&view=rev
Log:
Make test GCC friendly.
Modified:
test-suite/trunk/SingleSource/UnitTests/Vector/constpool.c
Modified: test-suite/trunk/SingleSource/UnitTests/Vector/constpool.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vector/constpool.c?rev=156181&r1=156180&r2=156181&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vector/constpool.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vector/constpool.c Fri May 4 12:15:37 2012
@@ -4,10 +4,13 @@
int main(int argc, char **argv) {
int i, j;
+ FV elems;
v4f32 x = {0.0f, 0.0f, 0.0f, 0.0f};
for (i = 0; i != 10; ++i)
x = f(x);
- printf("%.1f %.1f %.1f %.1f\n", x[0], x[1], x[2], x[3]);
+ elems.V = x;
+ printf("%.1f %.1f %.1f %.1f\n",
+ elems.A[0], elems.A[1], elems.A[2], elems.A[3]);
return 0;
}
More information about the llvm-commits
mailing list