summaryrefslogtreecommitdiff
path: root/test/threads.wasm-only.fromasm.imprecise
blob: 9426be3ebe278be666cde0380b5bdc5575b65ec9 (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
(module
 (type $FUNCSIG$vi (func (param i32)))
 (import "env" "memory" (memory $memory (shared 256 256)))
 (import "env" "setTempRet0" (func $setTempRet0 (param i32)))
 (export "test64" (func $legalstub$test64))
 (func $test64 (; 1 ;) (; has Stack IR ;) (result i64)
  (local $0 i64)
  (local $1 i64)
  (i64.atomic.store
   (i32.const 4656)
   (i64.const 92)
  )
  (drop
   (i64.atomic.load
    (i32.const 4656)
   )
  )
  (drop
   (i64.atomic.rmw.cmpxchg
    (i32.const 1024)
    (local.tee $1
     (i64.atomic.rmw.xchg
      (i32.const 1024)
      (local.tee $0
       (i64.atomic.rmw.xor
        (i32.const 1024)
        (i64.atomic.rmw.or
         (i32.const 1024)
         (i64.atomic.rmw.and
          (i32.const 1024)
          (i64.atomic.rmw.sub
           (i32.const 1024)
           (i64.atomic.rmw.add
            (i32.const 0)
            (i64.const 26)
           )
          )
         )
        )
       )
      )
     )
    )
    (local.get $0)
   )
  )
  (local.get $1)
 )
 (func $legalstub$test64 (; 2 ;) (; has Stack IR ;) (result i32)
  (local $0 i64)
  (local.set $0
   (call $test64)
  )
  (call $setTempRet0
   (i32.wrap_i64
    (i64.shr_u
     (local.get $0)
     (i64.const 32)
    )
   )
  )
  (i32.wrap_i64
   (local.get $0)
  )
 )
)