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

Unified Diff: crosstest/test_vector_ops_main.cpp

Issue 435353002: Subzero: Fix and clean up some cross tests. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Fix newlines and filename Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crosstest/test_vector_ops.def ('k') | crosstest/vectors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_vector_ops_main.cpp
diff --git a/crosstest/test_vector_ops_main.cpp b/crosstest/test_vector_ops_main.cpp
index f48e09903f59d8f787dc74ce46c519794faa89e6..ef7b4504aa5997024e768b58a1a950f49b8e0717 100644
--- a/crosstest/test_vector_ops_main.cpp
+++ b/crosstest/test_vector_ops_main.cpp
@@ -53,7 +53,7 @@ typename VectorOps<T>::Ty *getTestVectors(size_t &NumTestVectors) {
const size_t VECTOR_ALIGNMENT = 16;
void *Dest;
if (posix_memalign(&Dest, VECTOR_ALIGNMENT, sizeof(TestVectors))) {
- std::cerr << "memory allocation error" << std::endl;
+ std::cerr << "memory allocation error\n";
abort();
}
@@ -89,9 +89,9 @@ void testInsertElement(size_t &TotalTests, size_t &Passes, size_t &Failures) {
std::cout << "insertelement<" << VectorOps<T>::TypeName << ">(Vect=";
std::cout << vectAsString<T>(Vect)
<< ", Element=" << (typename VectorOps<T>::CastTy)Elt
- << ", Pos=" << I << ")" << std::endl;
- std::cout << "llc=" << vectAsString<T>(ResultLlc) << std::endl;
- std::cout << "sz =" << vectAsString<T>(ResultSz) << std::endl;
+ << ", Pos=" << I << ")\n";
+ std::cout << "llc=" << vectAsString<T>(ResultLlc) << "\n";
+ std::cout << "sz =" << vectAsString<T>(ResultSz) << "\n";
}
}
}
@@ -120,9 +120,9 @@ void testExtractElement(size_t &TotalTests, size_t &Passes, size_t &Failures) {
} else {
++Failures;
std::cout << "extractelement<" << VectorOps<T>::TypeName << ">(Vect=";
- std::cout << vectAsString<T>(Vect) << ", Pos=" << I << ")" << std::endl;
- std::cout << "llc=" << ResultLlc << std::endl;
- std::cout << "sz =" << ResultSz << std::endl;
+ std::cout << vectAsString<T>(Vect) << ", Pos=" << I << ")\n";
+ std::cout << "llc=" << ResultLlc << "\n";
+ std::cout << "sz =" << ResultSz << "\n";
}
}
}
@@ -166,7 +166,7 @@ int main(int argc, char *argv[]) {
extern "C" {
void ice_unreachable(void) {
- std::cerr << "\"unreachable\" instruction encountered" << std::endl;
+ std::cerr << "\"unreachable\" instruction encountered\n";
abort();
}
}
« no previous file with comments | « crosstest/test_vector_ops.def ('k') | crosstest/vectors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698