Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(779)

Side by Side Diff: crosstest/test_vector_ops_main.cpp

Issue 1706883003: Subzero. Removes X8664_STACK_HACK from the crosstests. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: removes code setting the stack size Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « crosstest/test_sync_atomic_main.cpp ('k') | crosstest/xdefs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/crosstest/test_vector_ops_main.cpp - Driver for tests ------===// 1 //===- subzero/crosstest/test_vector_ops_main.cpp - Driver for tests ------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // Driver for crosstesting insertelement and extractelement operations 10 // Driver for crosstesting insertelement and extractelement operations
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 std::cout << vectAsString<T>(Vect) << ", Pos=" << I << ")\n"; 123 std::cout << vectAsString<T>(Vect) << ", Pos=" << I << ")\n";
124 std::cout << "llc=" << ResultLlc << "\n"; 124 std::cout << "llc=" << ResultLlc << "\n";
125 std::cout << "sz =" << ResultSz << "\n"; 125 std::cout << "sz =" << ResultSz << "\n";
126 } 126 }
127 } 127 }
128 } 128 }
129 129
130 free(TestVectors); 130 free(TestVectors);
131 } 131 }
132 132
133 #ifdef X8664_STACK_HACK
134 extern "C" int wrapped_main(int argc, char *argv[]) {
135 #else // !defined(X8664_STACK_HACK)
136 int main(int argc, char *argv[]) { 133 int main(int argc, char *argv[]) {
137 #endif // X8664_STACK_HACK
138 size_t TotalTests = 0; 134 size_t TotalTests = 0;
139 size_t Passes = 0; 135 size_t Passes = 0;
140 size_t Failures = 0; 136 size_t Failures = 0;
141 137
142 testInsertElement<v4i1>(TotalTests, Passes, Failures); 138 testInsertElement<v4i1>(TotalTests, Passes, Failures);
143 testInsertElement<v8i1>(TotalTests, Passes, Failures); 139 testInsertElement<v8i1>(TotalTests, Passes, Failures);
144 testInsertElement<v16i1>(TotalTests, Passes, Failures); 140 testInsertElement<v16i1>(TotalTests, Passes, Failures);
145 testInsertElement<v16si8>(TotalTests, Passes, Failures); 141 testInsertElement<v16si8>(TotalTests, Passes, Failures);
146 testInsertElement<v16ui8>(TotalTests, Passes, Failures); 142 testInsertElement<v16ui8>(TotalTests, Passes, Failures);
147 testInsertElement<v8si16>(TotalTests, Passes, Failures); 143 testInsertElement<v8si16>(TotalTests, Passes, Failures);
(...skipping 11 matching lines...) Expand all
159 testExtractElement<v8ui16>(TotalTests, Passes, Failures); 155 testExtractElement<v8ui16>(TotalTests, Passes, Failures);
160 testExtractElement<v4si32>(TotalTests, Passes, Failures); 156 testExtractElement<v4si32>(TotalTests, Passes, Failures);
161 testExtractElement<v4ui32>(TotalTests, Passes, Failures); 157 testExtractElement<v4ui32>(TotalTests, Passes, Failures);
162 testExtractElement<v4f32>(TotalTests, Passes, Failures); 158 testExtractElement<v4f32>(TotalTests, Passes, Failures);
163 159
164 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes 160 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes
165 << " Failures=" << Failures << "\n"; 161 << " Failures=" << Failures << "\n";
166 162
167 return Failures; 163 return Failures;
168 } 164 }
OLDNEW
« no previous file with comments | « crosstest/test_sync_atomic_main.cpp ('k') | crosstest/xdefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698