From 548c162417b1230e8d67596eed37ea97c5e09eaf Mon Sep 17 00:00:00 2001 From: "Nicolas B. Pierron" Date: Mon, 28 Aug 2017 13:04:54 +0000 Subject: [PATCH] Bug 1377710 - Branch Pruning: Add pathological test case. r=nbp --- .../tests/ion/branch-pruning-abuse.js | 335 ++++++++++++++++++ 1 file changed, 335 insertions(+) create mode 100644 js/src/jit-test/tests/ion/branch-pruning-abuse.js diff --git a/js/src/jit-test/tests/ion/branch-pruning-abuse.js b/js/src/jit-test/tests/ion/branch-pruning-abuse.js new file mode 100644 index 000000000000..e3125bfd09df --- /dev/null +++ b/js/src/jit-test/tests/ion/branch-pruning-abuse.js @@ -0,0 +1,335 @@ +function foo() { + var a1, a2, a3, a4, a5, a6, a7, a8, a9, a10; + var a11, a12, a13, a14, a15, a16, a17, a18, a19, a20; + var a21, a22, a23, a24, a25, a26, a27, a28, a29, a30; + var a31, a32, a33, a34, a35, a36, a37, a38, a39, a40; + var a41, a42, a43, a44, a45, a46, a47, a48, a49, a50; + var a51, a52, a53, a54, a55, a56, a57, a58, a59, a60; + var a61, a62, a63, a64, a65, a66, a67, a68, a69, a70; + var a71, a72, a73, a74, a75, a76, a77, a78, a79, a80; + var a81, a82, a83, a84, a85, a86, a87, a88, a89, a90; + var a91, a92, a93, a94, a95, a96, a97, a98, a99, a100; + var b1, b2, b3, b4, b5, b6, b7, b8, b9, b10; + var b11, b12, b13, b14, b15, b16, b17, b18, b19, b20; + var b21, b22, b23, b24, b25, b26, b27, b28, b29, b30; + var b31, b32, b33, b34, b35, b36, b37, b38, b39, b40; + var b41, b42, b43, b44, b45, b46, b47, b48, b49, b50; + var b51, b52, b53, b54, b55, b56, b57, b58, b59, b60; + var b61, b62, b63, b64, b65, b66, b67, b68, b69, b70; + var b71, b72, b73, b74, b75, b76, b77, b78, b79, b80; + var b81, b82, b83, b84, b85, b86, b87, b88, b89, b90; + var b91, b92, b93, b94, b95, b96, b97, b98, b99, b100; + var c1, c2, c3, c4, c5, c6, c7, c8, c9, c10; + var c11, c12, c13, c14, c15, c16, c17, c18, c19, c20; + var c21, c22, c23, c24, c25, c26, c27, c28, c29, c30; + var c31, c32, c33, c34, c35, c36, c37, c38, c39, c40; + var c41, c42, c43, c44, c45, c46, c47, c48, c49, c50; + var c51, c52, c53, c54, c55, c56, c57, c58, c59, c60; + var c61, c62, c63, c64, c65, c66, c67, c68, c69, c70; + var c71, c72, c73, c74, c75, c76, c77, c78, c79, c80; + var c81, c82, c83, c84, c85, c86, c87, c88, c89, c90; + var c91, c92, c93, c94, c95, c96, c97, c98, c99, c100; + if (a1) {} + else if (a2) {} + else if (a3) {} + else if (a4) {} + else if (a5) {} + else if (a6) {} + else if (a7) {} + else if (a8) {} + else if (a9) {} + else if (a10) {} + else if (a11) {} + else if (a12) {} + else if (a13) {} + else if (a14) {} + else if (a15) {} + else if (a16) {} + else if (a17) {} + else if (a18) {} + else if (a19) {} + else if (a20) {} + else if (a21) {} + else if (a22) {} + else if (a23) {} + else if (a24) {} + else if (a25) {} + else if (a26) {} + else if (a27) {} + else if (a28) {} + else if (a29) {} + else if (a30) {} + else if (a31) {} + else if (a32) {} + else if (a33) {} + else if (a34) {} + else if (a35) {} + else if (a36) {} + else if (a37) {} + else if (a38) {} + else if (a39) {} + else if (a40) {} + else if (a41) {} + else if (a42) {} + else if (a43) {} + else if (a44) {} + else if (a45) {} + else if (a46) {} + else if (a47) {} + else if (a48) {} + else if (a49) {} + else if (a50) {} + else if (a51) {} + else if (a52) {} + else if (a53) {} + else if (a54) {} + else if (a55) {} + else if (a56) {} + else if (a57) {} + else if (a58) {} + else if (a59) {} + else if (a60) {} + else if (a61) {} + else if (a62) {} + else if (a63) {} + else if (a64) {} + else if (a65) {} + else if (a66) {} + else if (a67) {} + else if (a68) {} + else if (a69) {} + else if (a70) {} + else if (a71) {} + else if (a72) {} + else if (a73) {} + else if (a74) {} + else if (a75) {} + else if (a76) {} + else if (a77) {} + else if (a78) {} + else if (a79) {} + else if (a80) {} + else if (a81) {} + else if (a82) {} + else if (a83) {} + else if (a84) {} + else if (a85) {} + else if (a86) {} + else if (a87) {} + else if (a88) {} + else if (a89) {} + else if (a90) {} + else if (a91) {} + else if (a92) {} + else if (a93) {} + else if (a94) {} + else if (a95) {} + else if (a96) {} + else if (a97) {} + else if (a98) {} + else if (a99) {} + else if (a100) {} + else if (b1) {} + else if (b2) {} + else if (b3) {} + else if (b4) {} + else if (b5) {} + else if (b6) {} + else if (b7) {} + else if (b8) {} + else if (b9) {} + else if (b10) {} + else if (b11) {} + else if (b12) {} + else if (b13) {} + else if (b14) {} + else if (b15) {} + else if (b16) {} + else if (b17) {} + else if (b18) {} + else if (b19) {} + else if (b20) {} + else if (b21) {} + else if (b22) {} + else if (b23) {} + else if (b24) {} + else if (b25) {} + else if (b26) {} + else if (b27) {} + else if (b28) {} + else if (b29) {} + else if (b30) {} + else if (b31) {} + else if (b32) {} + else if (b33) {} + else if (b34) {} + else if (b35) {} + else if (b36) {} + else if (b37) {} + else if (b38) {} + else if (b39) {} + else if (b40) {} + else if (b41) {} + else if (b42) {} + else if (b43) {} + else if (b44) {} + else if (b45) {} + else if (b46) {} + else if (b47) {} + else if (b48) {} + else if (b49) {} + else if (b50) {} + else if (b51) {} + else if (b52) {} + else if (b53) {} + else if (b54) {} + else if (b55) {} + else if (b56) {} + else if (b57) {} + else if (b58) {} + else if (b59) {} + else if (b60) {} + else if (b61) {} + else if (b62) {} + else if (b63) {} + else if (b64) {} + else if (b65) {} + else if (b66) {} + else if (b67) {} + else if (b68) {} + else if (b69) {} + else if (b70) {} + else if (b71) {} + else if (b72) {} + else if (b73) {} + else if (b74) {} + else if (b75) {} + else if (b76) {} + else if (b77) {} + else if (b78) {} + else if (b79) {} + else if (b80) {} + else if (b81) {} + else if (b82) {} + else if (b83) {} + else if (b84) {} + else if (b85) {} + else if (b86) {} + else if (b87) {} + else if (b88) {} + else if (b89) {} + else if (b90) {} + else if (b91) {} + else if (b92) {} + else if (b93) {} + else if (b94) {} + else if (b95) {} + else if (b96) {} + else if (b97) {} + else if (b98) {} + else if (b99) {} + else if (b100) {} + else if (c1) {} + else if (c2) {} + else if (c3) {} + else if (c4) {} + else if (c5) {} + else if (c6) {} + else if (c7) {} + else if (c8) {} + else if (c9) {} + else if (c10) {} + else if (c11) {} + else if (c12) {} + else if (c13) {} + else if (c14) {} + else if (c15) {} + else if (c16) {} + else if (c17) {} + else if (c18) {} + else if (c19) {} + else if (c20) {} + else if (c21) {} + else if (c22) {} + else if (c23) {} + else if (c24) {} + else if (c25) {} + else if (c26) {} + else if (c27) {} + else if (c28) {} + else if (c29) {} + else if (c30) {} + else if (c31) {} + else if (c32) {} + else if (c33) {} + else if (c34) {} + else if (c35) {} + else if (c36) {} + else if (c37) {} + else if (c38) {} + else if (c39) {} + else if (c40) {} + else if (c41) {} + else if (c42) {} + else if (c43) {} + else if (c44) {} + else if (c45) {} + else if (c46) {} + else if (c47) {} + else if (c48) {} + else if (c49) {} + else if (c50) {} + else if (c51) {} + else if (c52) {} + else if (c53) {} + else if (c54) {} + else if (c55) {} + else if (c56) {} + else if (c57) {} + else if (c58) {} + else if (c59) {} + else if (c60) {} + else if (c61) {} + else if (c62) {} + else if (c63) {} + else if (c64) {} + else if (c65) {} + else if (c66) {} + else if (c67) {} + else if (c68) {} + else if (c69) {} + else if (c70) {} + else if (c71) {} + else if (c72) {} + else if (c73) {} + else if (c74) {} + else if (c75) {} + else if (c76) {} + else if (c77) {} + else if (c78) {} + else if (c79) {} + else if (c80) {} + else if (c81) {} + else if (c82) {} + else if (c83) {} + else if (c84) {} + else if (c85) {} + else if (c86) {} + else if (c87) {} + else if (c88) {} + else if (c89) {} + else if (c90) {} + else if (c91) {} + else if (c92) {} + else if (c93) {} + else if (c94) {} + else if (c95) {} + else if (c96) {} + else if (c97) {} + else if (c98) {} + else if (c99) {} + else if (c100) {} + return inIon(); +} + +while (!foo()) ;