| 1 |
(module |
| 2 |
(type (;0;) (func (result i32))) |
| 3 |
(type (;1;) (func)) |
| 4 |
(import "spectest" "global_i32" (global $a (;0;) (shared i32))) |
| 5 |
(import "spectest" "global_i64" (global $b (;1;) (shared mut i64))) |
| 6 |
(global $d (;2;) (shared i32) i32.const 0) |
| 7 |
(global $e (;3;) (shared mut i64) i64.const 1) |
| 8 |
(export "get-a-seqcst" (func 0)) |
| 9 |
(export "set-b-seqcst" (func 1)) |
| 10 |
(export "get-d-acqrel" (func 2)) |
| 11 |
(export "set-e-acqrel" (func 3)) |
| 12 |
(func (;0;) (type 0) (result i32) |
| 13 |
global.atomic.get seq_cst $a |
| 14 |
) |
| 15 |
(func (;1;) (type 1) |
| 16 |
i64.const 1 |
| 17 |
global.atomic.set seq_cst $b |
| 18 |
) |
| 19 |
(func (;2;) (type 0) (result i32) |
| 20 |
global.atomic.get acq_rel $d |
| 21 |
) |
| 22 |
(func (;3;) (type 1) |
| 23 |
i64.const 2 |
| 24 |
global.atomic.set acq_rel $e |
| 25 |
) |
| 26 |
) |