blob: 97a3f7de9d2da7d49710f7838050cdde0824ecc9 (
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
|
(module
(import "env" "memory" (memory $0 (shared 256 256)))
(import "env" "table" (table 0 0 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "threads.asm.js")
(export "test" (func $test))
(func $test (; 0 ;)
(local $0 i32)
(drop
(i32.atomic.load
(i32.const 4916)
)
)
(drop
(i32.atomic.rmw.xor
(i32.atomic.rmw.or
(i32.atomic.rmw.and
(i32.atomic.rmw.sub
(i32.atomic.rmw.add
(i32.atomic.rmw.cmpxchg
(block (result i32)
(i32.atomic.store
(i32.atomic.load16_u
(i32.const 2458)
)
(i32.const 0)
)
(i32.atomic.rmw.xchg
(get_local $0)
(i32.const 1)
)
)
(i32.const 1)
(i32.const 2)
)
(i32.const 0)
)
(i32.const 0)
)
(i32.const 0)
)
(i32.const 0)
)
(i32.const 0)
)
)
(drop
(i32.atomic.rmw.xor
(i32.const 4096)
(i32.const 0)
)
)
(drop
(i32.atomic.rmw16_u.xor
(i32.const 2048)
(i32.const 0)
)
)
(drop
(i32.atomic.rmw8_u.xor
(i32.const 1024)
(i32.const 0)
)
)
)
)
|