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; |