summaryrefslogtreecommitdiff
path: root/test/threads.fromasm
blob: c189b208b260962bb0b7bcb34597dc605d06a37c (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
68
69
70
71
72
73
(module
 (import "env" "memory" (memory $memory (shared 256 256)))
 (data (global.get $__memory_base) "threads.asm.js")
 (import "env" "__memory_base" (global $__memory_base i32))
 (export "test" (func $test))
 (func $test (; 0 ;) (; has Stack IR ;)
  (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
           (local.get $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.xor_u
    (i32.const 2048)
    (i32.const 0)
   )
  )
  (drop
   (i32.atomic.rmw8.cmpxchg_u
    (i32.atomic.rmw8.cmpxchg_u
     (i32.atomic.rmw8.xor_u
      (i32.const 1024)
      (i32.const 0)
     )
     (i32.const 1)
     (i32.const 2)
    )
    (i32.const 1)
    (i32.const 2)
   )
  )
 )
)