summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1569137.js
blob: d80ae954867961e737b17d682deba1ee692ee233 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
let { exports: { f } } = wasmEvalText(`
(module
 (memory $0 1 1)

 (func (export "f") (result f32)
  (local $0 i32) (local $1 f64) (local $2 i32)

  (local.set 0 (i32.const 134219779))
  (local.set 1 (f64.const 3810600700439633677210579e165))

  (f32.floor
   (loop $label$2 (result f32)
    (br_if $label$2
     (i32.load offset=3 align=2
       (block $label$4 (result i32)
        (drop
         (if (result f64)
             (br_if $label$4
              (i32.const 4883)
                (i32.const -124)
          )
          (then (f64.const 77))
          (else
           (block (result f64)
            (drop
              (br_if $label$4
                (i32.const 4194304)
                (i32.const -8192)
              )
            )
            (return
              (f32.const 4294967296)
            )
           )
          )
         )
        )
          (br_if $label$4
             (br_if $label$4
              (i32.const -90)
               (br_if $label$4
                (br_if $label$4
                 (local.get $2)
                 (i32.const -16)
                )
                (i32.const 15656)
               )
             )
          (block $label$18 (result i32)
           (i32.eqz
            (br_if $label$4
                 (i32.const -1)
                 (i32.const 15)
           )
          )
         )
        )
       )
     )
    )
    (f32.const 23)
   )
  )
 )
)`);

f();