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

Side by Side Diff: crosstest/test_icmp_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_fcmp_main.cpp ('k') | crosstest/test_select_main.cpp » ('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_icmp_main.cpp - Driver for tests. -----------===// 1 //===- subzero/crosstest/test_icmp_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 cross testing the icmp bitcode instruction 10 // Driver for cross testing the icmp bitcode instruction
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 << vectAsString<T>(Value1) << "," << vectAsString<T>(Value2) 343 << vectAsString<T>(Value1) << "," << vectAsString<T>(Value2)
344 << "): sz=" << vectAsString<T>(ResultSz) 344 << "): sz=" << vectAsString<T>(ResultSz)
345 << " llc=" << vectAsString<T>(ResultLlc) << "\n"; 345 << " llc=" << vectAsString<T>(ResultLlc) << "\n";
346 } 346 }
347 } 347 }
348 } 348 }
349 } 349 }
350 #endif // !ARM32 350 #endif // !ARM32
351 } 351 }
352 352
353 #ifdef X8664_STACK_HACK
354 extern "C" int wrapped_main(int argc, char *argv[]) {
355 #else // !defined(X8664_STACK_HACK)
356 int main(int argc, char *argv[]) { 353 int main(int argc, char *argv[]) {
357 #endif // X8664_STACK_HACK
358 size_t TotalTests = 0; 354 size_t TotalTests = 0;
359 size_t Passes = 0; 355 size_t Passes = 0;
360 size_t Failures = 0; 356 size_t Failures = 0;
361 357
362 testsInt<uint8_t, myint8_t>(TotalTests, Passes, Failures); 358 testsInt<uint8_t, myint8_t>(TotalTests, Passes, Failures);
363 testsInt<uint16_t, int16_t>(TotalTests, Passes, Failures); 359 testsInt<uint16_t, int16_t>(TotalTests, Passes, Failures);
364 testsInt<uint32_t, int32_t>(TotalTests, Passes, Failures); 360 testsInt<uint32_t, int32_t>(TotalTests, Passes, Failures);
365 testsInt<uint64, int64>(TotalTests, Passes, Failures); 361 testsInt<uint64, int64>(TotalTests, Passes, Failures);
366 testsIntWithZero<uint8_t, myint8_t>(TotalTests, Passes, Failures); 362 testsIntWithZero<uint8_t, myint8_t>(TotalTests, Passes, Failures);
367 testsIntWithZero<uint16_t, int16_t>(TotalTests, Passes, Failures); 363 testsIntWithZero<uint16_t, int16_t>(TotalTests, Passes, Failures);
368 testsIntWithZero<uint32_t, int32_t>(TotalTests, Passes, Failures); 364 testsIntWithZero<uint32_t, int32_t>(TotalTests, Passes, Failures);
369 testsIntWithZero<uint64, int64>(TotalTests, Passes, Failures); 365 testsIntWithZero<uint64, int64>(TotalTests, Passes, Failures);
370 testsVecInt<v4ui32, v4si32>(TotalTests, Passes, Failures); 366 testsVecInt<v4ui32, v4si32>(TotalTests, Passes, Failures);
371 testsVecInt<v8ui16, v8si16>(TotalTests, Passes, Failures); 367 testsVecInt<v8ui16, v8si16>(TotalTests, Passes, Failures);
372 testsVecInt<v16ui8, v16si8>(TotalTests, Passes, Failures); 368 testsVecInt<v16ui8, v16si8>(TotalTests, Passes, Failures);
373 testsVecI1<v4i1>(TotalTests, Passes, Failures); 369 testsVecI1<v4i1>(TotalTests, Passes, Failures);
374 testsVecI1<v8i1>(TotalTests, Passes, Failures); 370 testsVecI1<v8i1>(TotalTests, Passes, Failures);
375 testsVecI1<v16i1>(TotalTests, Passes, Failures); 371 testsVecI1<v16i1>(TotalTests, Passes, Failures);
376 372
377 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes 373 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes
378 << " Failures=" << Failures << "\n"; 374 << " Failures=" << Failures << "\n";
379 return Failures; 375 return Failures;
380 } 376 }
OLDNEW
« no previous file with comments | « crosstest/test_fcmp_main.cpp ('k') | crosstest/test_select_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698