summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/testBug863867.js
blob: 4d5a2dce182dac6a7ad0e9abd8cdbf85533be02c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
assertEq((function() {
  'use asm';
  function _main() {
    var $1=0, $2=0, $3=0, $4=0, $5=0, $6=0, $7=0, $8=0, $9=0, $10=0, label=0;
    label = 1;
    while (1) {
      switch (label | 0) {
       case 1:
        $2 = $1 + 14 | 0;
        $3 = $1;
        label = 20;
        break;
       case 20:
        $5 = $2;
        $4 = $3;
        label = 24;
        break;
       case 24:
        $7 = $5 + 1 | 0;
        $8 = $4 + 1 | 0;
        return $8|0;
       case 49:
        $9 = $6 + 1 | 0;
        if ($10) {
          $6 = $9;
          break;
        }
        return 0;
      }
    }
    return 0;
  }
  return _main;
})()(), 1);