We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2daa0e4 commit a78813dCopy full SHA for a78813d
Lib/test/test_capi/test_opt.py
@@ -2451,6 +2451,21 @@ def testfunc(n):
2451
self.assertNotIn("_GUARD_TOS_FLOAT", uops)
2452
self.assertNotIn("_GUARD_NOS_FLOAT", uops)
2453
2454
+ def test_binary_op_constant_evaluate(self):
2455
+ def testfunc(n):
2456
+ for _ in range(n):
2457
+ a = 2 ** 65
2458
+
2459
+ testfunc(TIER2_THRESHOLD)
2460
2461
+ ex = get_first_executor(testfunc)
2462
+ self.assertIsNotNone(ex)
2463
+ uops = get_opnames(ex)
2464
2465
+ # For now.. until we constant propagte it away.
2466
+ self.assertIn("_BINARY_OP", uops)
2467
2468
2469
def global_identity(x):
2470
return x
2471
0 commit comments