OLD | NEW |
1 //===- subzero/crosstest/test_vector_ops_main.cpp - Driver for tests ------===// | 1 //===- subzero/crosstest/test_vector_ops_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 insertelement and extractelement operations | 10 // Driver for crosstesting insertelement and extractelement operations |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 std::cout << vectAsString<T>(Vect) << ", Pos=" << I << ")\n"; | 123 std::cout << vectAsString<T>(Vect) << ", Pos=" << I << ")\n"; |
124 std::cout << "llc=" << ResultLlc << "\n"; | 124 std::cout << "llc=" << ResultLlc << "\n"; |
125 std::cout << "sz =" << ResultSz << "\n"; | 125 std::cout << "sz =" << ResultSz << "\n"; |
126 } | 126 } |
127 } | 127 } |
128 } | 128 } |
129 | 129 |
130 free(TestVectors); | 130 free(TestVectors); |
131 } | 131 } |
132 | 132 |
133 #ifdef X8664_STACK_HACK | |
134 extern "C" int wrapped_main(int argc, char *argv[]) { | |
135 #else // !defined(X8664_STACK_HACK) | |
136 int main(int argc, char *argv[]) { | 133 int main(int argc, char *argv[]) { |
137 #endif // X8664_STACK_HACK | |
138 size_t TotalTests = 0; | 134 size_t TotalTests = 0; |
139 size_t Passes = 0; | 135 size_t Passes = 0; |
140 size_t Failures = 0; | 136 size_t Failures = 0; |
141 | 137 |
142 testInsertElement<v4i1>(TotalTests, Passes, Failures); | 138 testInsertElement<v4i1>(TotalTests, Passes, Failures); |
143 testInsertElement<v8i1>(TotalTests, Passes, Failures); | 139 testInsertElement<v8i1>(TotalTests, Passes, Failures); |
144 testInsertElement<v16i1>(TotalTests, Passes, Failures); | 140 testInsertElement<v16i1>(TotalTests, Passes, Failures); |
145 testInsertElement<v16si8>(TotalTests, Passes, Failures); | 141 testInsertElement<v16si8>(TotalTests, Passes, Failures); |
146 testInsertElement<v16ui8>(TotalTests, Passes, Failures); | 142 testInsertElement<v16ui8>(TotalTests, Passes, Failures); |
147 testInsertElement<v8si16>(TotalTests, Passes, Failures); | 143 testInsertElement<v8si16>(TotalTests, Passes, Failures); |
(...skipping 11 matching lines...) Expand all Loading... |
159 testExtractElement<v8ui16>(TotalTests, Passes, Failures); | 155 testExtractElement<v8ui16>(TotalTests, Passes, Failures); |
160 testExtractElement<v4si32>(TotalTests, Passes, Failures); | 156 testExtractElement<v4si32>(TotalTests, Passes, Failures); |
161 testExtractElement<v4ui32>(TotalTests, Passes, Failures); | 157 testExtractElement<v4ui32>(TotalTests, Passes, Failures); |
162 testExtractElement<v4f32>(TotalTests, Passes, Failures); | 158 testExtractElement<v4f32>(TotalTests, Passes, Failures); |
163 | 159 |
164 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes | 160 std::cout << "TotalTests=" << TotalTests << " Passes=" << Passes |
165 << " Failures=" << Failures << "\n"; | 161 << " Failures=" << Failures << "\n"; |
166 | 162 |
167 return Failures; | 163 return Failures; |
168 } | 164 } |
OLD | NEW |