summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/regalloc-i64-load-store-global.js
blob: da971d1aa257c3d6019e07cd5d1c20cbd3c5faf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
wasmFullPassI64(`
    (module
        (global (mut i64) (i64.const 9970292656026947164))
        (func (export "global.get_0") (result i64) global.get 0)

        (func $run (param i32) (result i64)
            i64.const 8692897571457488645
            i64.const 1028567229461950342
            i64.mul
            global.get 0
            f32.const 3.141592653
            f32.floor
            f32.const -13.37
            f32.floor
            f32.copysign
            drop
            i64.div_u
        )
    )
`, 1, {}, 'i32.const 0');