diff options
author | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | 2020-04-28 18:39:09 +0200 |
---|---|---|
committer | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | 2020-04-28 18:39:09 +0200 |
commit | a8802cc4fea3a1204eb1461aec66d80f9771ae4e (patch) | |
tree | 6f2476d9135a1c89464336e0d1d013e39a603bc4 | |
parent | better reasoning about upper bounds of or and xor, and about lower bounds of or (diff) | |
download | pypy-a8802cc4fea3a1204eb1461aec66d80f9771ae4e.tar.gz pypy-a8802cc4fea3a1204eb1461aec66d80f9771ae4e.tar.bz2 pypy-a8802cc4fea3a1204eb1461aec66d80f9771ae4e.zip |
fix type-unsafe test
-rw-r--r-- | rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py | 11 |
1 files 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) |