From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- js/src/jit-test/tests/ion/bug680432.js | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 js/src/jit-test/tests/ion/bug680432.js (limited to 'js/src/jit-test/tests/ion/bug680432.js') diff --git a/js/src/jit-test/tests/ion/bug680432.js b/js/src/jit-test/tests/ion/bug680432.js new file mode 100644 index 000000000..f98e02868 --- /dev/null +++ b/js/src/jit-test/tests/ion/bug680432.js @@ -0,0 +1,46 @@ +function f0(p0) { + var v0 = 0.5; + var v1 = 1.5; + var v2 = 2.5; + var v3 = 3.5; + var v4 = 4.5; + var v5 = 5.5; + var v6 = 6.5; + var v7 = 7.5; + var v8 = 8.5; + var v9 = 9.5; + var v10 = 10.5; + var v11 = 11.5; + var v12 = 12.5; + var v13 = 13.5; + var v14 = 14.5; + var v15 = 15.5; + var v16 = 16.5; + // 0.125 is used to avoid the oracle choice for int32. + while (0) { + // p0 = false; + var tmp = v0; + v0 = 0.125 + v0 + v1; + v1 = 0.125 + v1 + v2; + v2 = 0.125 + v2 + v3; + v3 = 0.125 + v3 + v4; + v4 = 0.125 + v4 + v5; + v5 = 0.125 + v5 + v6; + v6 = 0.125 + v6 + v7; + v7 = 0.125 + v7 + v8; + v8 = 0.125 + v8 + v9; + v9 = 0.125 + v9 + v10; + v10 = 0.125 + v10 + v11; + v11 = 0.125 + v11 + v12; + v12 = 0.125 + v12 + v13; + v13 = 0.125 + v13 + v14; + v14 = 0.125 + v14 + v15; + v15 = 0.125 + v15 + v16; + v16 = 0.125 + v16 + tmp; + } + return 0.5 + v0 + v1 + v2 + v3 + v4 + v5 + v6 + v7 + v8 + v9 + v10 + v11 + v12 + v13 + v14 + v15 + v16; +} + +// expect 145 +assertEq(f0(false), 145); + -- cgit v1.2.3