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

Side by Side Diff: crosstest/test_arith_main.cpp

Issue 547033002: Subzero: Be more strict about i1 calculations. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make OPTM1 change similar to CHECK change Created 6 years, 3 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 | « no previous file | src/IceGlobalContext.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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 } 340 }
341 } 341 }
342 } 342 }
343 } 343 }
344 344
345 int main(int argc, char **argv) { 345 int main(int argc, char **argv) {
346 size_t TotalTests = 0; 346 size_t TotalTests = 0;
347 size_t Passes = 0; 347 size_t Passes = 0;
348 size_t Failures = 0; 348 size_t Failures = 0;
349 349
350 testsInt<bool, bool>(TotalTests, Passes, Failures);
350 testsInt<uint8_t, myint8_t>(TotalTests, Passes, Failures); 351 testsInt<uint8_t, myint8_t>(TotalTests, Passes, Failures);
351 testsInt<uint16_t, int16_t>(TotalTests, Passes, Failures); 352 testsInt<uint16_t, int16_t>(TotalTests, Passes, Failures);
352 testsInt<uint32_t, int32_t>(TotalTests, Passes, Failures); 353 testsInt<uint32_t, int32_t>(TotalTests, Passes, Failures);
353 testsInt<uint64_t, int64_t>(TotalTests, Passes, Failures); 354 testsInt<uint64_t, int64_t>(TotalTests, Passes, Failures);
354 testsVecInt<v4ui32, v4si32>(TotalTests, Passes, Failures); 355 testsVecInt<v4ui32, v4si32>(TotalTests, Passes, Failures);
355 testsVecInt<v8ui16, v8si16>(TotalTests, Passes, Failures); 356 testsVecInt<v8ui16, v8si16>(TotalTests, Passes, Failures);
356 testsVecInt<v16ui8, v16si8>(TotalTests, Passes, Failures); 357 testsVecInt<v16ui8, v16si8>(TotalTests, Passes, Failures);
357 testsFp<float>(TotalTests, Passes, Failures); 358 testsFp<float>(TotalTests, Passes, Failures);
358 testsFp<double>(TotalTests, Passes, Failures); 359 testsFp<double>(TotalTests, Passes, Failures);
359 testsVecFp(TotalTests, Passes, Failures); 360 testsVecFp(TotalTests, Passes, Failures);
360 361
361 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes 362 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes
362 << " Failures=" << Failures << "\n"; 363 << " Failures=" << Failures << "\n";
363 return Failures; 364 return Failures;
364 } 365 }
365 366
OLDNEW
« no previous file with comments | « no previous file | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698