Bug 1312488 - Part 2: Add a testcase for ConvertElementsToDouble. r=jwalden
authorTooru Fujisawa <arai_a@mac.com>
Sat, 29 Oct 2016 01:47:30 +0900
changeset 320025 8f89f06bdb13ae1574dac84a8b56e5d9db4ba6c9
parent 320024 b05eb6590d71d53d564534cb0f3c8bcf08b826cf
child 320026 83ab2e59b7b537e420ba8aab75544a287686476a
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1312488
milestone52.0a1
Bug 1312488 - Part 2: Add a testcase for ConvertElementsToDouble. r=jwalden
js/src/jit-test/tests/ion/ConvertElementsToDouble-Int32.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/ConvertElementsToDouble-Int32.js
@@ -0,0 +1,9 @@
+// Bug 1312488
+
+function test(a) {
+    let x = 0;
+    for (let i = 0, len = a.length; i < len; i++)
+        x += a[i];
+    return x;
+}
+assertEq(test([10.1, 10.2, 10.3, 10.4, 10]), 51);