Skip to content

Commit 725dc8e

Browse files
committed
Fix JIT tests
1 parent f98d91d commit 725dc8e

File tree

9 files changed

+230
-56
lines changed

9 files changed

+230
-56
lines changed

Include/internal/pycore_opcode_metadata.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_ids.h

Lines changed: 58 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 34 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/test/test_capi/test_opt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def testfunc(x):
134134
self.assertIsNotNone(ex)
135135
uops = get_opnames(ex)
136136
self.assertIn("_JUMP_TO_TOP", uops)
137-
self.assertIn("_LOAD_FAST_0", uops)
137+
self.assertIn("_LOAD_FAST_BORROW_0", uops)
138138

139139
def test_extended_arg(self):
140140
"Check EXTENDED_ARG handling in superblock creation"
@@ -180,7 +180,7 @@ def many_vars():
180180

181181
ex = get_first_executor(many_vars)
182182
self.assertIsNotNone(ex)
183-
self.assertTrue(any((opcode, oparg, operand) == ("_LOAD_FAST", 259, 0)
183+
self.assertTrue(any((opcode, oparg, operand) == ("_LOAD_FAST_BORROW", 259, 0)
184184
for opcode, oparg, _, operand in list(ex)))
185185

186186
def test_unspecialized_unpack(self):

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ dummy_func(
270270
value = PyStackRef_DUP(GETLOCAL(oparg));
271271
}
272272

273-
inst (LOAD_FAST_BORROW, (-- value)) {
273+
replicate(8) pure inst (LOAD_FAST_BORROW, (-- value)) {
274274
assert(!PyStackRef_IsNull(GETLOCAL(oparg)));
275275
#ifdef Py_GIL_DISABLED
276276
value = PyStackRef_AsDeferred(GETLOCAL(oparg));

Python/executor_cases.c.h

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)