assemblyscript/tests/compiler/portable-conversions.optimized.wat
dcodeIO 16d1a833dd Always add a null function at table index zero
This allows function references (a table index internally) to be nullable
2018-09-17 01:48:35 +02:00

124 lines
2.0 KiB
Plaintext

(module
(type $v (func))
(global $portable-conversions/f (mut f32) (f32.const 0))
(global $portable-conversions/F (mut f64) (f64.const 0))
(memory $0 0)
(export "memory" (memory $0))
(start $start)
(func $start (; 0 ;) (; has Stack IR ;) (type $v)
(drop
(i32.trunc_s/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_s/f64
(get_global $portable-conversions/F)
)
)
(drop
(i32.trunc_s/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_s/f64
(get_global $portable-conversions/F)
)
)
(drop
(i32.trunc_s/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_s/f64
(get_global $portable-conversions/F)
)
)
(drop
(i64.trunc_s/f32
(get_global $portable-conversions/f)
)
)
(drop
(i64.trunc_s/f64
(get_global $portable-conversions/F)
)
)
(drop
(i32.trunc_s/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_s/f64
(get_global $portable-conversions/F)
)
)
(drop
(i32.trunc_u/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_u/f64
(get_global $portable-conversions/F)
)
)
(drop
(i32.trunc_u/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_u/f64
(get_global $portable-conversions/F)
)
)
(drop
(i32.trunc_u/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_u/f64
(get_global $portable-conversions/F)
)
)
(drop
(i64.trunc_u/f32
(get_global $portable-conversions/f)
)
)
(drop
(i64.trunc_u/f64
(get_global $portable-conversions/F)
)
)
(drop
(i32.trunc_u/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_u/f64
(get_global $portable-conversions/F)
)
)
(drop
(i32.trunc_u/f32
(get_global $portable-conversions/f)
)
)
(drop
(i32.trunc_u/f64
(get_global $portable-conversions/F)
)
)
)
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
(nop)
)
)