Commits

Maciej Fijalkowski committed f534ba1

add a passing test

Comments (0)

Files changed (1)

pypy/jit/metainterp/optimizeopt/test/test_vectorize.py

         finish(p0, p1, p2, i0, i1, i3)
         """
         self.optimize_loop(ops, expected)
+
+    def test_force_by_box_usage_2(self):
+        ops = """
+        [p0, p1, p2, i0, i1, i2]
+        call(0, p0, i0, descr=assert_aligned)
+        call(0, p1, i1, descr=assert_aligned)
+        call(0, p2, i2, descr=assert_aligned)
+        f0 = getarrayitem_raw(p0, i0, descr=arraydescr)
+        f1 = getarrayitem_raw(p1, i1, descr=arraydescr)
+        f2 = float_add(f0, f1)
+        setarrayitem_raw(p2, i2, f2)
+        i3 = cast_float_to_int(f2)
+        finish(p0, p1, p2, i0, i1, i3)
+        """
+        expected = """
+        [p0, p1, p2, i0, i1, i2]
+        f0 = getarrayitem_raw(p0, i0, descr=arraydescr)
+        f1 = getarrayitem_raw(p1, i1, descr=arraydescr)
+        f2 = float_add(f0, f1)
+        setarrayitem_raw(p2, i2, f2)
+        i3 = cast_float_to_int(f2)
+        finish(p0, p1, p2, i0, i1, i3)
+        """
+        self.optimize_loop(ops, expected)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.