Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

5.0 KB
Raw Blame
;;! target = "x86_64"
;;! flags = "-W function-references,gc"
;;! test = "optimize"

(module
  (type $ty (struct (field (mut f32))
                    (field (mut i8))
                    (field (mut anyref))
                    (field (mut v128))))

  (func (result (ref $ty))
    (struct.new_default $ty)
  )
)
;; function u0:0(i64 vmctx, i64) -> i32 tail {
;;     region0 = 123 ""
;;     region1 = 160 ""
;;     region2 = 65 ""
;;     region3 = 210 ""
;;     region4 = 115 ""
;;     region5 = 130 ""
;;     region6 = 134 ""
;;     region7 = 196 ""
;;     region8 = 77 ""
;;     region9 = 87 ""
;;     region10 = 175 ""
;;     region11 = 147 ""
;;     region12 = 225 ""
;;     region13 = 152 ""
;;     region14 = 245 ""
;;     gv0 = vmctx
;;     gv1 = load.i64 notrap aligned readonly can_move region0 gv0+8
;;     gv2 = load.i64 notrap aligned region1 gv1+24
;;     sig0 = (i64 vmctx, i32, i32, i32, i32) -> i32 tail
;;     fn0 = colocated u805306368:23 sig0
;;     const0 = 0x00000000000000000000000000000000
;;     stack_limit = gv2
;;
;;                                 block0(v0: i64, v1: i64):
;; @0023                               v7 = load.i64 notrap aligned readonly can_move region2 v0+32
;; @0023                               v8 = load.i32 notrap aligned region3 v7
;; @0023                               v9 = load.i32 notrap aligned region4 v7+4
;; @0023                               v15 = uextend.i64 v8
;;                                     v46 = iconst.i64 48
;; @0023                               v16 = iadd v15, v46  ; v46 = 48
;; @0023                               v17 = uextend.i64 v9
;; @0023                               v18 = icmp ule v16, v17
;; @0023                               brif v18, block2, block3
;;
;;                                 block2:
;; @0023                               v62 = iconst.i32 48
;;                                     v60 = iadd.i32 v8, v62  ; v62 = 48
;; @0023                               store notrap aligned region3 v60, v7
;; @0023                               v63 = iconst.i32 -1342177246
;; @0023                               v64 = load.i64 notrap aligned readonly can_move region0 v0+8
;; @0023                               v65 = load.i64 notrap aligned readonly can_move region7 v64+32
;; @0023                               v32 = iadd v65, v15
;; @0023                               store user2 region8 v63, v32  ; v63 = -1342177246
;; @0023                               v66 = load.i64 notrap aligned readonly can_move region5 v0+40
;; @0023                               v67 = load.i32 notrap aligned readonly can_move region6 v66
;; @0023                               store user2 region9 v67, v32+4
;;                                     v68 = iconst.i64 48
;; @0023                               istore32 user2 region10 v68, v32+8  ; v68 = 48
;; @0023                               jump block4(v8, v32)
;;
;;                                 block3 cold:
;; @0023                               v19 = iconst.i32 -1342177246
;; @0023                               v20 = load.i64 notrap aligned readonly can_move region5 v0+40
;; @0023                               v21 = load.i32 notrap aligned readonly can_move region6 v20
;; @0023                               v6 = iconst.i32 48
;; @0023                               v22 = iconst.i32 16
;; @0023                               v23 = call fn0(v0, v19, v21, v6, v22)  ; v19 = -1342177246, v6 = 48, v22 = 16
;; @0023                               v24 = load.i64 notrap aligned readonly can_move region0 v0+8
;; @0023                               v25 = load.i64 notrap aligned readonly can_move region7 v24+32
;; @0023                               v26 = uextend.i64 v23
;; @0023                               v27 = iadd v25, v26
;; @0023                               jump block4(v23, v27)
;;
;;                                 block4(v36: i32, v37: i64):
;; @0023                               v2 = f32const 0.0
;; @0023                               v38 = iconst.i64 16
;; @0023                               v39 = iadd v37, v38  ; v38 = 16
;; @0023                               store user2 little region11 v2, v39  ; v2 = 0.0
;; @0023                               v3 = iconst.i32 0
;; @0023                               v40 = iconst.i64 20
;; @0023                               v41 = iadd v37, v40  ; v40 = 20
;; @0023                               istore8 user2 little region12 v3, v41  ; v3 = 0
;; @0023                               v42 = iconst.i64 24
;; @0023                               v43 = iadd v37, v42  ; v42 = 24
;; @0023                               store user2 little region13 v3, v43  ; v3 = 0
;; @0023                               v5 = vconst.i8x16 const0
;; @0023                               v44 = iconst.i64 32
;; @0023                               v45 = iadd v37, v44  ; v44 = 32
;; @0023                               store user2 little region14 v5, v45  ; v5 = const0
;; @0026                               jump block1
;;
;;                                 block1:
;; @0026                               return v36
;; }