OLD | NEW |
1 //===- subzero/crosstest/test_calling_conv_main.cpp - Driver for tests ----===// | 1 //===- subzero/crosstest/test_calling_conv_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 // This file contains the driver for cross testing the compatibility of | 10 // This file contains the driver for cross testing the compatibility of |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 ++Failures; | 155 ++Failures; |
156 std::cout << "testCallee(Caller=" << Funcs[f].CallerName | 156 std::cout << "testCallee(Caller=" << Funcs[f].CallerName |
157 << ", Callee=" << Funcs[f].CalleeName << ", ArgNum=" << ArgNum | 157 << ", Callee=" << Funcs[f].CalleeName << ", ArgNum=" << ArgNum |
158 << ")\nsz =" << bufAsString(BufSz) | 158 << ")\nsz =" << bufAsString(BufSz) |
159 << "\nllc=" << bufAsString(BufLlc) << "\n"; | 159 << "\nllc=" << bufAsString(BufLlc) << "\n"; |
160 } | 160 } |
161 } | 161 } |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 #ifdef X8664_STACK_HACK | |
166 extern "C" int wrapped_main(int argc, char *argv[]) { | |
167 #else // !defined(X8664_STACK_HACK) | |
168 int main(int argc, char *argv[]) { | 165 int main(int argc, char *argv[]) { |
169 #endif // X8664_STACK_HACK | |
170 size_t TotalTests = 0; | 166 size_t TotalTests = 0; |
171 size_t Passes = 0; | 167 size_t Passes = 0; |
172 size_t Failures = 0; | 168 size_t Failures = 0; |
173 | 169 |
174 testCaller(TotalTests, Passes, Failures); | 170 testCaller(TotalTests, Passes, Failures); |
175 testCallee(TotalTests, Passes, Failures); | 171 testCallee(TotalTests, Passes, Failures); |
176 | 172 |
177 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes | 173 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes |
178 << " Failures=" << Failures << "\n"; | 174 << " Failures=" << Failures << "\n"; |
179 | 175 |
180 return Failures; | 176 return Failures; |
181 } | 177 } |
OLD | NEW |