1. Van Lindberg
  2. pypy

Commits

Hakan Ardo  committed a6f23c0

failing test

  • Participants
  • Parent commits c0c8469
  • Branches default

Comments (0)

Files changed (1)

File pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py

View file
         """
         self.optimize_loop(ops, expected)
 
+    def test_repeated_setfield_mixed_with_guard(self):
+        ops = """
+        [p22, p18]
+        setfield_gc(p22, 2, descr=valuedescr)
+        guard_nonnull_class(p18, ConstClass(node_vtable)) []
+        setfield_gc(p22, 2, descr=valuedescr)
+        jump(p22, p18)
+        """
+        preamble = """
+        [p22, p18]
+        setfield_gc(p22, 2, descr=valuedescr)
+        guard_nonnull_class(p18, ConstClass(node_vtable)) []
+        jump(p22, p18)
+        """
+        expected = """
+        [p22, p18]
+        jump(p22, p18)
+        """
+        self.optimize_loop(ops, expected, preamble)
+
 class TestLLtype(OptimizeOptTest, LLtypeMixin):
     pass