OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The Native Client Authors. All rights reserved. | 2 * Copyright 2016 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "gtest/gtest.h" | 9 #include "gtest/gtest.h" |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 DECLARE_TEMPLATE(no_rewrite_code) | 38 DECLARE_TEMPLATE(no_rewrite_code) |
39 #if NACL_BUILD_SUBARCH == 32 | 39 #if NACL_BUILD_SUBARCH == 32 |
40 DECLARE_TEMPLATE(movntq_code) | 40 DECLARE_TEMPLATE(movntq_code) |
41 DECLARE_TEMPLATE(movntdq_code) | 41 DECLARE_TEMPLATE(movntdq_code) |
42 DECLARE_TEMPLATE(prefetchnta_code) | 42 DECLARE_TEMPLATE(prefetchnta_code) |
43 #else | 43 #else |
44 DECLARE_TEMPLATE(off_webstore_movnt_code) | 44 DECLARE_TEMPLATE(off_webstore_movnt_code) |
45 DECLARE_TEMPLATE(prefetchnta_code) | 45 DECLARE_TEMPLATE(prefetchnta_code) |
46 DECLARE_TEMPLATE(prefetchnta_rip_relative_code) | 46 DECLARE_TEMPLATE(prefetchnta_rip_relative_code) |
| 47 DECLARE_TEMPLATE(movntq_code) |
47 DECLARE_TEMPLATE(movntps_code) | 48 DECLARE_TEMPLATE(movntps_code) |
48 DECLARE_TEMPLATE(movnti_code) | 49 DECLARE_TEMPLATE(movnti_code) |
49 DECLARE_TEMPLATE(movnti_code2) | 50 DECLARE_TEMPLATE(movnti_code2) |
50 DECLARE_TEMPLATE(movnti_rip_relative_code) | 51 DECLARE_TEMPLATE(movnti_rip_relative_code) |
51 DECLARE_TEMPLATE(movntdq_code) | 52 DECLARE_TEMPLATE(movntdq_code) |
52 DECLARE_TEMPLATE(movntdq_code2) | 53 DECLARE_TEMPLATE(movntdq_code2) |
53 DECLARE_TEMPLATE(multiple_movnt_code) | 54 DECLARE_TEMPLATE(multiple_movnt_code) |
54 DECLARE_TEMPLATE(one_bundle_movnt_code) | 55 DECLARE_TEMPLATE(one_bundle_movnt_code) |
55 DECLARE_TEMPLATE(last_movnti_cross_bundle_by_one) | 56 DECLARE_TEMPLATE(last_movnti_cross_bundle_by_one) |
56 #endif | 57 #endif |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 } | 132 } |
132 | 133 |
133 TEST_F(ValidationMovntRewriteTests, RewritePrefetchnta) { | 134 TEST_F(ValidationMovntRewriteTests, RewritePrefetchnta) { |
134 TestRewrite(&t_prefetchnta_code); | 135 TestRewrite(&t_prefetchnta_code); |
135 } | 136 } |
136 | 137 |
137 TEST_F(ValidationMovntRewriteTests, RewritePrefetchntaRipRelative) { | 138 TEST_F(ValidationMovntRewriteTests, RewritePrefetchntaRipRelative) { |
138 TestRewrite(&t_prefetchnta_rip_relative_code); | 139 TestRewrite(&t_prefetchnta_rip_relative_code); |
139 } | 140 } |
140 | 141 |
| 142 TEST_F(ValidationMovntRewriteTests, RewriteMovntq) { |
| 143 TestRewrite(&t_movntq_code); |
| 144 } |
| 145 |
141 TEST_F(ValidationMovntRewriteTests, RewriteMovntps) { | 146 TEST_F(ValidationMovntRewriteTests, RewriteMovntps) { |
142 TestRewrite(&t_movntps_code); | 147 TestRewrite(&t_movntps_code); |
143 } | 148 } |
144 | 149 |
145 TEST_F(ValidationMovntRewriteTests, RewriteMovnti) { | 150 TEST_F(ValidationMovntRewriteTests, RewriteMovnti) { |
146 TestRewrite(&t_movnti_code); | 151 TestRewrite(&t_movnti_code); |
147 } | 152 } |
148 | 153 |
149 TEST_F(ValidationMovntRewriteTests, RewriteMovnti2) { | 154 TEST_F(ValidationMovntRewriteTests, RewriteMovnti2) { |
150 TestRewrite(&t_movnti_code2); | 155 TestRewrite(&t_movnti_code2); |
(...skipping 23 matching lines...) Expand all Loading... |
174 TestRewrite(&t_last_movnti_cross_bundle_by_one); | 179 TestRewrite(&t_last_movnti_cross_bundle_by_one); |
175 } | 180 } |
176 | 181 |
177 #endif | 182 #endif |
178 | 183 |
179 int main(int argc, char *argv[]) { | 184 int main(int argc, char *argv[]) { |
180 NaClLogModuleInit(); | 185 NaClLogModuleInit(); |
181 testing::InitGoogleTest(&argc, argv); | 186 testing::InitGoogleTest(&argc, argv); |
182 return RUN_ALL_TESTS(); | 187 return RUN_ALL_TESTS(); |
183 } | 188 } |
OLD | NEW |