8000 gh-100239: specialize left and right shift ops on ints by eendebakpt · Pull Request #129431 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-100239: specialize left and right shift ops on ints #129431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
add test
  • Loading branch information
eendebakpt committed Jan 29, 2025
commit dd5347028cae18ce3d41d22a3f271cb484f8f4c6
6 changes: 6 additions & 0 deletions Lib/test/test_opcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,12 @@ def binary_op_bitwise_extend():
a, b = 3, 9
a ^= b
self.assertEqual(a, 10)
a, b = 10, 2
a = a >> b
self.assertEqual(a, 2)
a, b = 10, 2
a >>= b
self.assertEqual(a, 2)

binary_op_bitwise_extend()
self.assert_specialized(binary_op_bitwise_extend, "BINARY_OP_EXTEND")
Expand Down
Loading
0