]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/threads.fromasm.imprecise.no-opts
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / threads.fromasm.imprecise.no-opts
1 (module
2 (import "env" "DYNAMICTOP_PTR" (global $DYNAMICTOP_PTR$asm2wasm$import i32))
3 (import "env" "tempDoublePtr" (global $tempDoublePtr$asm2wasm$import i32))
4 (import "env" "ABORT" (global $ABORT$asm2wasm$import i32))
5 (import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32))
6 (import "env" "STACK_MAX" (global $STACK_MAX$asm2wasm$import i32))
7 (import "global" "NaN" (global $nan$asm2wasm$import f64))
8 (import "global" "Infinity" (global $inf$asm2wasm$import f64))
9 (import "env" "memory" (memory $0 (shared 256 256)))
10 (import "env" "table" (table 0 0 anyfunc))
11 (import "env" "memoryBase" (global $memoryBase i32))
12 (import "env" "tableBase" (global $tableBase i32))
13 (global $DYNAMICTOP_PTR (mut i32) (get_global $DYNAMICTOP_PTR$asm2wasm$import))
14 (global $tempDoublePtr (mut i32) (get_global $tempDoublePtr$asm2wasm$import))
15 (global $ABORT (mut i32) (get_global $ABORT$asm2wasm$import))
16 (global $STACKTOP (mut i32) (get_global $STACKTOP$asm2wasm$import))
17 (global $STACK_MAX (mut i32) (get_global $STACK_MAX$asm2wasm$import))
18 (global $__THREW__ (mut i32) (i32.const 0))
19 (global $threwValue (mut i32) (i32.const 0))
20 (global $setjmpId (mut i32) (i32.const 0))
21 (global $undef (mut i32) (i32.const 0))
22 (global $nan (mut f64) (get_global $nan$asm2wasm$import))
23 (global $inf (mut f64) (get_global $inf$asm2wasm$import))
24 (global $tempInt (mut i32) (i32.const 0))
25 (global $tempBigInt (mut i32) (i32.const 0))
26 (global $tempBigIntS (mut i32) (i32.const 0))
27 (global $tempValue (mut i32) (i32.const 0))
28 (global $tempDouble (mut f64) (f64.const 0))
29 (global $tempRet0 (mut i32) (i32.const 0))
30 (global $__pthread_ptr (mut i32) (i32.const 0))
31 (global $__pthread_is_main_runtime_thread (mut i32) (i32.const 0))
32 (global $__pthread_is_main_browser_thread (mut i32) (i32.const 0))
33 (global $tempFloat (mut f32) (f32.const 0))
34 (global $f0 (mut f32) (f32.const 0))
35 (export "test" (func $test))
36 (func $test (; 0 ;)
37 (local $$temp i32)
38 (local $1 i32)
39 (set_local $$temp
40 (i32.atomic.load
41 (i32.const 4916)
42 )
43 )
44 (set_local $$temp
45 (i32.atomic.load16_u
46 (i32.const 2458)
47 )
48 )
49 (set_local $$temp
50 (block (result i32)
51 (i32.atomic.store
52 (get_local $$temp)
53 (tee_local $1
54 (i32.const 0)
55 )
56 )
57 (get_local $1)
58 )
59 )
60 (set_local $$temp
61 (i32.atomic.rmw.xchg
62 (get_local $$temp)
63 (i32.const 1)
64 )
65 )
66 (set_local $$temp
67 (i32.atomic.rmw.cmpxchg
68 (get_local $$temp)
69 (i32.const 1)
70 (i32.const 2)
71 )
72 )
73 (set_local $$temp
74 (i32.atomic.rmw.add
75 (get_local $$temp)
76 (i32.const 0)
77 )
78 )
79 (set_local $$temp
80 (i32.atomic.rmw.sub
81 (get_local $$temp)
82 (i32.const 0)
83 )
84 )
85 (set_local $$temp
86 (i32.atomic.rmw.and
87 (get_local $$temp)
88 (i32.const 0)
89 )
90 )
91 (set_local $$temp
92 (i32.atomic.rmw.or
93 (get_local $$temp)
94 (i32.const 0)
95 )
96 )
97 (set_local $$temp
98 (i32.atomic.rmw.xor
99 (get_local $$temp)
100 (i32.const 0)
101 )
102 )
103 (set_local $$temp
104 (i32.atomic.rmw.xor
105 (i32.const 4096)
106 (i32.const 0)
107 )
108 )
109 (set_local $$temp
110 (i32.atomic.rmw16_u.xor
111 (i32.const 2048)
112 (i32.const 0)
113 )
114 )
115 (set_local $$temp
116 (i32.atomic.rmw8_u.xor
117 (i32.const 1024)
118 (i32.const 0)
119 )
120 )
121 )
122 )