-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Expand file tree
/
Copy pathwasi-uint32-int32.wat
More file actions
50 lines (42 loc) · 1.02 KB
/
wasi-uint32-int32.wat
File metadata and controls
50 lines (42 loc) · 1.02 KB
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
(module
(import "wasi_snapshot_preview1" "clock_time_get"
(func $clock_time_get (param i32 i64 i32) (result i32)))
(memory (export "memory") 2)
(func (export "test_clock_time_get") (result i32)
i32.const 0
i64.const 1
i32.const 0x80000000
call $clock_time_get
)
(func (export "test_clock_time_get_zero") (result i32)
i32.const 0
i64.const 1
i32.const 0
call $clock_time_get
)
(func (export "test_clock_time_get_one") (result i32)
i32.const 1
i64.const 1
i32.const 1
call $clock_time_get
)
(func (export "test_clock_time_get_int32_max") (result i32)
i32.const 0
i64.const 1
i32.const 0x7fffffff
call $clock_time_get
)
(func (export "test_clock_time_get_uint32_min") (result i32)
i32.const 0
i64.const 1
i32.const 0x80000000
call $clock_time_get
)
(func (export "test_clock_time_get_uint32_max") (result i32)
i32.const 0
i64.const 1
i32.const 0xffffffff
call $clock_time_get
)
(func (export "_start"))
)