2017-12-15 15:00:19 +01:00
|
|
|
(module
|
|
|
|
(type $v (func))
|
2017-12-15 17:23:04 +01:00
|
|
|
(global $i8.MIN_VALUE i32 (i32.const -128))
|
|
|
|
(global $i8.MAX_VALUE i32 (i32.const 127))
|
|
|
|
(global $i16.MIN_VALUE i32 (i32.const -32768))
|
|
|
|
(global $i16.MAX_VALUE i32 (i32.const 32767))
|
|
|
|
(global $i32.MIN_VALUE i32 (i32.const -2147483648))
|
|
|
|
(global $i32.MAX_VALUE i32 (i32.const 2147483647))
|
|
|
|
(global $i64.MIN_VALUE i64 (i64.const -9223372036854775808))
|
|
|
|
(global $i64.MAX_VALUE i64 (i64.const 9223372036854775807))
|
|
|
|
(global $u8.MIN_VALUE i32 (i32.const 0))
|
|
|
|
(global $u8.MAX_VALUE i32 (i32.const 255))
|
|
|
|
(global $u16.MIN_VALUE i32 (i32.const 0))
|
|
|
|
(global $u16.MAX_VALUE i32 (i32.const 65535))
|
|
|
|
(global $u32.MIN_VALUE i32 (i32.const 0))
|
|
|
|
(global $u32.MAX_VALUE i32 (i32.const -1))
|
|
|
|
(global $u64.MIN_VALUE i64 (i64.const 0))
|
|
|
|
(global $u64.MAX_VALUE i64 (i64.const -1))
|
|
|
|
(global $bool.MIN_VALUE i32 (i32.const 0))
|
|
|
|
(global $bool.MAX_VALUE i32 (i32.const 1))
|
|
|
|
(global $f32.MIN_SAFE_INTEGER f32 (f32.const -16777215))
|
|
|
|
(global $f32.MAX_SAFE_INTEGER f32 (f32.const 16777215))
|
|
|
|
(global $f64.MIN_SAFE_INTEGER f64 (f64.const -9007199254740991))
|
|
|
|
(global $f64.MAX_SAFE_INTEGER f64 (f64.const 9007199254740991))
|
2017-12-16 17:54:53 +01:00
|
|
|
(global $HEAP_BASE i32 (i32.const 4))
|
2017-12-15 15:00:19 +01:00
|
|
|
(memory $0 1)
|
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
|
|
|
(func $start (; 0 ;) (type $v)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:1:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const -128)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:2:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 127)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:3:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const -32768)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:4:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 32767)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:5:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const -2147483648)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:6:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 2147483647)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:7:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i64.const -9223372036854775808)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:8:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i64.const 9223372036854775807)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:9:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const -2147483648)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:10:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 2147483647)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:11:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:12:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:13:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:14:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 65535)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:15:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:16:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:17:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i64.const 0)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:18:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i64.const -1)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:19:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:20:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:21:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:22:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:23:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(f32.const -16777215)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:24:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(f32.const 16777215)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:25:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(f64.const -9007199254740991)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ limits.ts:26:0
|
2017-12-15 15:00:19 +01:00
|
|
|
(drop
|
|
|
|
(f64.const 9007199254740991)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|