OLD | NEW |
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 Loading... |
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 |
OLD | NEW |