]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/threads.wasm-only.fromasm
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / threads.wasm-only.fromasm
1 (module
2 (import "env" "memory" (memory $0 (shared 256 256)))
3 (import "env" "table" (table 0 0 anyfunc))
4 (import "env" "memoryBase" (global $memoryBase i32))
5 (import "env" "tableBase" (global $tableBase i32))
6 (global $tempRet0 (mut i32) (i32.const 0))
7 (data (get_global $memoryBase) "threads.wasm-only.asm.js")
8 (export "test64" (func $legalstub$test64))
9 (func $test64 (; 0 ;) (result i64)
10 (local $0 i64)
11 (local $1 i64)
12 (local $2 i32)
13 (i64.atomic.store
14 (i32.const 4656)
15 (i64.const 92)
16 )
17 (drop
18 (i64.atomic.load
19 (i32.const 4656)
20 )
21 )
22 (drop
23 (i64.atomic.rmw.cmpxchg
24 (i32.const 1024)
25 (tee_local $1
26 (i64.atomic.rmw.xchg
27 (i32.const 1024)
28 (tee_local $0
29 (i64.atomic.rmw.xor
30 (i32.const 1024)
31 (i64.atomic.rmw.or
32 (i32.const 1024)
33 (i64.atomic.rmw.and
34 (i32.const 1024)
35 (i64.atomic.rmw.sub
36 (i32.const 1024)
37 (i64.atomic.rmw.add
38 (get_local $2)
39 (i64.const 26)
40 )
41 )
42 )
43 )
44 )
45 )
46 )
47 )
48 (get_local $0)
49 )
50 )
51 (get_local $1)
52 )
53 (func $legalstub$test64 (; 1 ;) (result i32)
54 (local $0 i64)
55 (set_local $0
56 (call $test64)
57 )
58 (set_global $tempRet0
59 (i32.wrap/i64
60 (i64.shr_u
61 (get_local $0)
62 (i64.const 32)
63 )
64 )
65 )
66 (i32.wrap/i64
67 (get_local $0)
68 )
69 )
70 )