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

Side by Side Diff: crosstest/test_arith_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/stack_hack.x8664.c ('k') | crosstest/test_bitmanip_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_arith_main.cpp - Driver for tests -----------===// 1 //===- subzero/crosstest/test_arith_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 arithmetic operations 10 // Driver for crosstesting arithmetic operations
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 std::cout << "test_fabs_v4f32" 373 std::cout << "test_fabs_v4f32"
374 << "(" << vectAsString<v4f32>(Value1) 374 << "(" << vectAsString<v4f32>(Value1)
375 << "): sz=" << vectAsString<v4f32>(ResultSz) << " llc" 375 << "): sz=" << vectAsString<v4f32>(ResultSz) << " llc"
376 << vectAsString<v4f32>(ResultLlc) << "\n"; 376 << vectAsString<v4f32>(ResultLlc) << "\n";
377 } 377 }
378 } 378 }
379 } 379 }
380 #endif // !ARM32 380 #endif // !ARM32
381 } 381 }
382 382
383 #ifdef X8664_STACK_HACK
384 extern "C" int wrapped_main(int argc, char *argv[]) {
385 #else // !defined(X8664_STACK_HACK)
386 int main(int argc, char *argv[]) { 383 int main(int argc, char *argv[]) {
387 #endif // X8664_STACK_HACK
388 size_t TotalTests = 0; 384 size_t TotalTests = 0;
389 size_t Passes = 0; 385 size_t Passes = 0;
390 size_t Failures = 0; 386 size_t Failures = 0;
391 387
392 testsInt<bool, bool>(TotalTests, Passes, Failures); 388 testsInt<bool, bool>(TotalTests, Passes, Failures);
393 testsInt<uint8_t, myint8_t>(TotalTests, Passes, Failures); 389 testsInt<uint8_t, myint8_t>(TotalTests, Passes, Failures);
394 testsInt<uint16_t, int16_t>(TotalTests, Passes, Failures); 390 testsInt<uint16_t, int16_t>(TotalTests, Passes, Failures);
395 testsInt<uint32_t, int32_t>(TotalTests, Passes, Failures); 391 testsInt<uint32_t, int32_t>(TotalTests, Passes, Failures);
396 testsInt<uint64, int64>(TotalTests, Passes, Failures); 392 testsInt<uint64, int64>(TotalTests, Passes, Failures);
397 testsVecInt<v4ui32, v4si32>(TotalTests, Passes, Failures); 393 testsVecInt<v4ui32, v4si32>(TotalTests, Passes, Failures);
398 testsVecInt<v8ui16, v8si16>(TotalTests, Passes, Failures); 394 testsVecInt<v8ui16, v8si16>(TotalTests, Passes, Failures);
399 testsVecInt<v16ui8, v16si8>(TotalTests, Passes, Failures); 395 testsVecInt<v16ui8, v16si8>(TotalTests, Passes, Failures);
400 testsFp<float>(TotalTests, Passes, Failures); 396 testsFp<float>(TotalTests, Passes, Failures);
401 testsFp<double>(TotalTests, Passes, Failures); 397 testsFp<double>(TotalTests, Passes, Failures);
402 testsVecFp(TotalTests, Passes, Failures); 398 testsVecFp(TotalTests, Passes, Failures);
403 399
404 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes 400 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes
405 << " Failures=" << Failures << "\n"; 401 << " Failures=" << Failures << "\n";
406 return Failures; 402 return Failures;
407 } 403 }
OLDNEW
« no previous file with comments | « crosstest/stack_hack.x8664.c ('k') | crosstest/test_bitmanip_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698