OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. Use of this | 1 // Copyright 2014 the V8 project authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include <cmath> | 5 #include <cmath> |
6 #include <functional> | 6 #include <functional> |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/ieee754.h" | 10 #include "src/base/ieee754.h" |
(...skipping 6723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6734 TEST(Regression5951) { | 6734 TEST(Regression5951) { |
6735 BufferedRawMachineAssemblerTester<int64_t> m(MachineType::Int64()); | 6735 BufferedRawMachineAssemblerTester<int64_t> m(MachineType::Int64()); |
6736 m.Return(m.Word64And(m.Word64Shr(m.Parameter(0), m.Int64Constant(0)), | 6736 m.Return(m.Word64And(m.Word64Shr(m.Parameter(0), m.Int64Constant(0)), |
6737 m.Int64Constant(0xffffffffffffffffl))); | 6737 m.Int64Constant(0xffffffffffffffffl))); |
6738 int64_t input = 1234; | 6738 int64_t input = 1234; |
6739 CHECK_EQ(input, m.Call(input)); | 6739 CHECK_EQ(input, m.Call(input)); |
6740 } | 6740 } |
6741 | 6741 |
6742 #endif // V8_TARGET_ARCH_64_BIT | 6742 #endif // V8_TARGET_ARCH_64_BIT |
6743 | 6743 |
| 6744 TEST(Regression6028) { |
| 6745 BufferedRawMachineAssemblerTester<int32_t> m; |
| 6746 m.Return(m.Word32Equal( |
| 6747 m.Word32And(m.Int32Constant(0x23), |
| 6748 m.Word32Sar(m.Int32Constant(1), m.Int32Constant(18))), |
| 6749 m.Int32Constant(0))); |
| 6750 CHECK_EQ(1, m.Call()); |
| 6751 } |
| 6752 |
6744 } // namespace compiler | 6753 } // namespace compiler |
6745 } // namespace internal | 6754 } // namespace internal |
6746 } // namespace v8 | 6755 } // namespace v8 |
OLD | NEW |