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 195f0a91dcb440c794bf8d7f2d96a3776d17f266..c8261aea49ff38249d5634995bdd7a7d202bcb81 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -6709,6 +6709,29 @@ TEST(ParentFramePointer) { |
CHECK_EQ(1, r.Call(1)); |
} |
+#if V8_TARGET_ARCH_64_BIT |
+ |
+TEST(Regression5923) { |
+ { |
+ BufferedRawMachineAssemblerTester<int64_t> m(MachineType::Int64()); |
+ m.Return(m.Int64Add( |
+ m.Word64Shr(m.Parameter(0), m.Int64Constant(4611686018427387888)), |
+ m.Parameter(0))); |
+ int64_t input = 16; |
+ m.Call(input); |
+ } |
+ { |
+ BufferedRawMachineAssemblerTester<int64_t> m(MachineType::Int64()); |
+ m.Return(m.Int64Add( |
+ m.Parameter(0), |
+ m.Word64Shr(m.Parameter(0), m.Int64Constant(4611686018427387888)))); |
+ int64_t input = 16; |
+ m.Call(input); |
+ } |
+} |
+ |
+#endif // V8_TARGET_ARCH_64_BIT |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |