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