From a8802cc4fea3a1204eb1461aec66d80f9771ae4e Mon Sep 17 00:00:00 2001 From: Carl Friedrich Bolz-Tereick Date: Tue, 28 Apr 2020 18:39:09 +0200 Subject: fix type-unsafe test --- rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py index 4de28a02ba..3e1a2e64fd 100644 --- a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py +++ b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py @@ -8327,7 +8327,7 @@ class TestOptimizeOpt(BaseTestWithUnroll): ops = """ [p1, p2] i1 = getfield_gc_i(p1, descr=valuedescr) - setfield_gc(p2, i1, descr=nextdescr) + setfield_gc(p2, i1, descr=valuedescr3) i2 = int_neg(i1) call_n(i2, descr=nonwritedescr) jump(p1, p2) @@ -8335,7 +8335,7 @@ class TestOptimizeOpt(BaseTestWithUnroll): expected = """ [p1, p2, i2, i1] call_n(i2, descr=nonwritedescr) - setfield_gc(p2, i1, descr=nextdescr) + setfield_gc(p2, i1, descr=valuedescr3) jump(p1, p2, i2, i1) """ self.optimize_loop(ops, expected) @@ -8346,17 +8346,18 @@ class TestOptimizeOpt(BaseTestWithUnroll): # potential short boxes during tests ops = """ [p1, p2] - i1 = getfield_gc_i(p1, descr=nextdescr) + i1 = getfield_gc_i(p1, descr=valuedescr3) setfield_gc(p2, i1, descr=valuedescr) i2 = int_neg(i1) call_n(i2, descr=nonwritedescr) jump(p1, p2) """ expected = """ - [p1, p2, i2, i1] + [p1, p2, i1] + i2 = int_neg(i1) call_n(i2, descr=nonwritedescr) setfield_gc(p2, i1, descr=valuedescr) - jump(p1, p2, i2, i1) + jump(p1, p2, i1) """ self.optimize_loop(ops, expected) -- cgit v1.2.3-65-gdbad