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

Unified Diff: test/cctest/compiler/test-run-machops.cc

Issue 2755373002: [arm64] The ubfx instruction can be used with a mask-width=64 (Closed)
Patch Set: Created 3 years, 9 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 | « src/compiler/arm64/code-generator-arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-run-machops.cc
diff --git a/test/cctest/compiler/test-run-machops.cc b/test/cctest/compiler/test-run-machops.cc
index 146d8dc4132a4d508b25d859a6d1d54f251c7b65..b5eeb8717e6be57abb0f0e6239530541a0f7deff 100644
--- a/test/cctest/compiler/test-run-machops.cc
+++ b/test/cctest/compiler/test-run-machops.cc
@@ -6746,6 +6746,15 @@ TEST(Regression6046a) {
CHECK_EQ(0, m.Call());
}
+TEST(Regression6122) {
+ BufferedRawMachineAssemblerTester<int64_t> m;
+ m.Return(m.Word64Shr(m.Word64And(m.Int64Constant(59), m.Int64Constant(-1)),
+ m.Int64Constant(0)));
+ CHECK_EQ(59, m.Call());
+}
+
+#endif // V8_TARGET_ARCH_64_BIT
+
TEST(Regression6046b) {
BufferedRawMachineAssemblerTester<int32_t> m;
m.Return(m.Word32Shr(m.Word32And(m.Int32Constant(0), m.Int32Constant(0)),
@@ -6753,7 +6762,12 @@ TEST(Regression6046b) {
CHECK_EQ(0, m.Call());
}
-#endif // V8_TARGET_ARCH_64_BIT
+TEST(Regression6122b) {
+ BufferedRawMachineAssemblerTester<int32_t> m;
+ m.Return(m.Word32Shr(m.Word32And(m.Int32Constant(59), m.Int32Constant(-1)),
+ m.Int32Constant(0)));
+ CHECK_EQ(59, m.Call());
+}
TEST(Regression6028) {
BufferedRawMachineAssemblerTester<int32_t> m;
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698