summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug643653-2.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /js/src/jit-test/tests/jaeger/bug643653-2.js
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/jaeger/bug643653-2.js58
1 files changed, 58 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/bug643653-2.js b/js/src/jit-test/tests/jaeger/bug643653-2.js
new file mode 100644
index 0000000000..aea6896f1d
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/bug643653-2.js
@@ -0,0 +1,58 @@
+var HEAP, IHEAP, FHEAP;
+var TOTAL_MEMORY = 50 * 1024 * 1024;
+HEAP = IHEAP = new Int32Array(TOTAL_MEMORY);
+STACK_ROOT = STACKTOP = undefined;
+var _rng;
+var __str2;
+var __str3;
+{
+ var __stackBase__ = STACKTOP;
+ var $n;
+ var $tmp5 = __stackBase__ + 12;
+ var $tmp6 = $n;
+ var $mul7 = ($tmp6) * 3;
+ $this_addr_i23 = $tmp5;
+ $id_addr_i = __str2;
+ $desc_addr_i = __str3;
+ $N_addr_i = $mul7;
+ var $this1_i24 = $this_addr_i23;
+ var $tmp_i25 = $id_addr_i;
+ var $tmp2_i = $desc_addr_i;
+ var $tmp3_i = $N_addr_i;
+ __Z9makeFastaI10RandomizedEvPKcS2_jRT_($tmp_i25, $tmp2_i, $tmp3_i, $this1_i24);
+}
+function __Z9makeFastaI10RandomizedEvPKcS2_jRT_($id, $desc, $N, $output)
+{
+ $output_addr = $output;
+ var $tmp4 = $output_addr;
+ $this_addr_i = $tmp4;
+ var $this1_i = $this_addr_i;
+ var $table_i = $this1_i;
+ var $call_i = __ZN10LineBuffer7genrandER10Cumulativej(0, $table_i, 0);
+}
+function __ZN10LineBuffer7genrandER10Cumulativej($this, $table, $N)
+{
+ var $this_addr_i1;
+ var $pct_addr_i;
+ $table_addr = $table;
+ var $tmp3 = $table_addr;
+ $this_addr_i = _rng;
+ $max_addr_i = 1;
+ var $this1_i = $this_addr_i;
+ var $last_i = $this1_i;
+ var $tmp_i = IHEAP[$last_i];
+ var $mul_i = ($tmp_i) * 3877;
+ var $add_i = ($mul_i) + 29573;
+ var $rem_i = ($add_i) % 139968;
+ var $last2_i = $this1_i;
+ IHEAP[$last2_i] = $rem_i;
+ var $tmp3_i = $max_addr_i;
+ var $last4_i = $this1_i;
+ var $tmp5_i = IHEAP[$last4_i];
+ var $conv_i = ($tmp5_i);
+ var $mul6_i = ($tmp3_i) * ($conv_i);
+ var $div_i = ($mul6_i) / 139968;
+ $this_addr_i1 = $tmp3;
+ $pct_addr_i = $div_i;
+ assertEq($pct_addr_i, NaN);
+}