Author: Carl Friedrich Bolz-Tereick <cfb...@gmx.de> Branch: regalloc-playground Changeset: r92322:96fe37156480 Date: 2017-09-03 09:34 +0200 http://bitbucket.org/pypy/pypy/changeset/96fe37156480/
Log: test for later diff --git a/rpython/jit/backend/x86/test/test_regalloc.py b/rpython/jit/backend/x86/test/test_regalloc.py --- a/rpython/jit/backend/x86/test/test_regalloc.py +++ b/rpython/jit/backend/x86/test/test_regalloc.py @@ -88,6 +88,21 @@ # i0 and i1, one for the result to the stack assert len([entry for entry in self.log if entry.name == "mov"]) == 3 + @pytest.mark.skip("later") + def test_same_stack_entry_many_times(self): + ops = ''' + [i0, i1, i2, i3] + i7 = int_add(i0, i1) + i8 = int_add(i2, i1) + i9 = int_add(i3, i1) + i10 = int_is_true(i9) + guard_true(i10) [i8] + finish(i7) + ''' + self.interpret(ops, [5, 6, 7, 8]) + # 4 moves for arguments, 1 for result + assert len([entry for entry in self.log if entry.name == "mov"]) == 5 + def test_coalescing(self): ops = ''' [i0, i1, i2, i3] _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit