| OLD | NEW |
| 1 //===- subzero/crosstest/test_fcmp_main.cpp - Driver for tests ------------===// | 1 //===- subzero/crosstest/test_fcmp_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 fcmp bitcode instruction | 10 // Driver for cross testing the fcmp bitcode instruction |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 std::cout << Funcs[f].Name << "Vector(" << vectAsString<v4f32>(Value1) | 197 std::cout << Funcs[f].Name << "Vector(" << vectAsString<v4f32>(Value1) |
| 198 << ", " << vectAsString<v4f32>(Value2) | 198 << ", " << vectAsString<v4f32>(Value2) |
| 199 << "): sz=" << vectAsString<v4si32>(ResultSz) | 199 << "): sz=" << vectAsString<v4si32>(ResultSz) |
| 200 << " llc=" << vectAsString<v4si32>(ResultLlc) << "\n"; | 200 << " llc=" << vectAsString<v4si32>(ResultLlc) << "\n"; |
| 201 } | 201 } |
| 202 } | 202 } |
| 203 } | 203 } |
| 204 #endif // ARM32 | 204 #endif // ARM32 |
| 205 } | 205 } |
| 206 | 206 |
| 207 #ifdef X8664_STACK_HACK | |
| 208 extern "C" int wrapped_main(int argc, char *argv[]) { | |
| 209 #else // !defined(X8664_STACK_HACK) | |
| 210 int main(int argc, char *argv[]) { | 207 int main(int argc, char *argv[]) { |
| 211 #endif // X8664_STACK_HACK | |
| 212 size_t TotalTests = 0; | 208 size_t TotalTests = 0; |
| 213 size_t Passes = 0; | 209 size_t Passes = 0; |
| 214 size_t Failures = 0; | 210 size_t Failures = 0; |
| 215 | 211 |
| 216 initializeValues(); | 212 initializeValues(); |
| 217 | 213 |
| 218 testsScalar(TotalTests, Passes, Failures); | 214 testsScalar(TotalTests, Passes, Failures); |
| 219 testsVector(TotalTests, Passes, Failures); | 215 testsVector(TotalTests, Passes, Failures); |
| 220 | 216 |
| 221 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes | 217 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes |
| 222 << " Failures=" << Failures << "\n"; | 218 << " Failures=" << Failures << "\n"; |
| 223 return Failures; | 219 return Failures; |
| 224 } | 220 } |
| OLD | NEW |