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

Side by Side Diff: crosstest/test_fcmp_main.cpp

Issue 1273153002: Subzero. Native 64-bit int arithmetic on x86-64. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes tests & make format Created 5 years, 4 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/test_cast_main.cpp ('k') | crosstest/test_icmp.h » ('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_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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 ++Failures; 152 ++Failures;
153 std::cout << Funcs[f].Name << "Vector(" << vectAsString<v4f32>(Value1) 153 std::cout << Funcs[f].Name << "Vector(" << vectAsString<v4f32>(Value1)
154 << ", " << vectAsString<v4f32>(Value2) 154 << ", " << vectAsString<v4f32>(Value2)
155 << "): sz=" << vectAsString<v4si32>(ResultSz) 155 << "): sz=" << vectAsString<v4si32>(ResultSz)
156 << " llc=" << vectAsString<v4si32>(ResultLlc) << "\n"; 156 << " llc=" << vectAsString<v4si32>(ResultLlc) << "\n";
157 } 157 }
158 } 158 }
159 } 159 }
160 } 160 }
161 161
162 int main(int argc, char **argv) { 162 #ifdef X8664_STACK_HACK
163 extern "C" int wrapped_main(int argc, char *argv[]) {
164 #else // !defined(X8664_STACK_HACK)
165 int main(int argc, char *argv[]) {
166 #endif // X8664_STACK_HACK
163 size_t TotalTests = 0; 167 size_t TotalTests = 0;
164 size_t Passes = 0; 168 size_t Passes = 0;
165 size_t Failures = 0; 169 size_t Failures = 0;
166 170
167 initializeValues(); 171 initializeValues();
168 172
169 testsScalar(TotalTests, Passes, Failures); 173 testsScalar(TotalTests, Passes, Failures);
170 testsVector(TotalTests, Passes, Failures); 174 testsVector(TotalTests, Passes, Failures);
171 175
172 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes 176 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes
173 << " Failures=" << Failures << "\n"; 177 << " Failures=" << Failures << "\n";
174 return Failures; 178 return Failures;
175 } 179 }
OLDNEW
« no previous file with comments | « crosstest/test_cast_main.cpp ('k') | crosstest/test_icmp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698