A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
;;! target = 'x86_64'
;;! test = 'optimize'
;;! flags = '-Wgc'
(module
(type $a (array (mut externref)))
(func $fill (param $len i32) (result (ref $a))
(array.new_default $a (local.get $len))
)
)
;; function u0:0(i64 vmctx, i64, i32) -> 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 = 108 ""
;; region12 = 206 ""
;; region13 = 5 ""
;; 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
;; stack_limit = gv2
;;
;; block0(v0: i64, v1: i64, v2: i32):
;; @001f v4 = uextend.i64 v2
;; v87 = iconst.i64 2
;; v88 = ishl v4, v87 ; v87 = 2
;; @001f v7 = iconst.i64 32
;; @001f v8 = ushr v88, v7 ; v7 = 32
;; @001f trapnz v8, user18
;; @001f v3 = iconst.i32 20
;; v94 = iconst.i32 2
;; v95 = ishl v2, v94 ; v94 = 2
;; @001f v10 = uadd_overflow_trap v3, v95, user18 ; v3 = 20
;; @001f v11 = load.i64 notrap aligned readonly can_move region2 v0+32
;; @001f v12 = load.i32 notrap aligned region3 v11
;; @001f v13 = load.i32 notrap aligned region4 v11+4
;; @001f v19 = uextend.i64 v12
;; @001f v14 = uextend.i64 v10
;; @001f v15 = iconst.i64 15
;; @001f v17 = iadd v14, v15 ; v15 = 15
;; @001f v16 = iconst.i64 -16
;; @001f v18 = band v17, v16 ; v16 = -16
;; @001f v20 = iadd v19, v18
;; @001f v21 = uextend.i64 v13
;; @001f v22 = icmp ule v20, v21
;; @001f brif v22, block2, block3
;;
;; block2:
;; v103 = iconst.i32 15
;; v104 = iadd.i32 v10, v103 ; v103 = 15
;; v107 = iconst.i32 -16
;; v108 = band v104, v107 ; v107 = -16
;; v110 = iadd.i32 v12, v108
;; @001f store notrap aligned region3 v110, v11
;; @001f v128 = iconst.i32 -1476394994
;; @001f v129 = load.i64 notrap aligned readonly can_move region0 v0+8
;; @001f v130 = load.i64 notrap aligned readonly can_move region7 v129+32
;; @001f v36 = iadd v130, v19
;; @001f store user2 region8 v128, v36 ; v128 = -1476394994
;; @001f v131 = load.i64 notrap aligned readonly can_move region5 v0+40
;; @001f v132 = load.i32 notrap aligned readonly can_move region6 v131
;; @001f store user2 region9 v132, v36+4
;; @001f v133 = band.i64 v17, v16 ; v16 = -16
;; @001f istore32 user2 region10 v133, v36+8
;; @001f jump block4(v12, v36)
;;
;; block3 cold:
;; @001f v23 = iconst.i32 -1476394994
;; @001f v24 = load.i64 notrap aligned readonly can_move region5 v0+40
;; @001f v25 = load.i32 notrap aligned readonly can_move region6 v24
;; @001f v26 = iconst.i32 16
;; @001f v27 = call fn0(v0, v23, v25, v10, v26) ; v23 = -1476394994, v26 = 16
;; @001f v28 = load.i64 notrap aligned readonly can_move region0 v0+8
;; @001f v29 = load.i64 notrap aligned readonly can_move region7 v28+32
;; @001f v30 = uextend.i64 v27
;; @001f v31 = iadd v29, v30
;; @001f jump block4(v27, v31)
;;
;; block4(v40: i32, v41: i64):
;; @001f v42 = iconst.i64 16
;; @001f v43 = iadd v41, v42 ; v42 = 16
;; @001f store.i32 user2 region11 v2, v43
;; @001f trapz v40, user16
;; @001f v134 = load.i64 notrap aligned readonly can_move region0 v0+8
;; @001f v135 = load.i64 notrap aligned readonly can_move region7 v134+32
;; @001f v46 = uextend.i64 v40
;; @001f v49 = iadd v135, v46
;; @001f v51 = iadd v49, v42 ; v42 = 16
;; @001f v52 = load.i32 user2 readonly region11 v51
;; @001f v53 = uextend.i64 v52
;; @001f v59 = icmp.i64 ugt v4, v53
;; @001f trapnz v59, user17
;; @001f v76 = load.i64 notrap aligned region12 v134+40
;; @001f v64 = iconst.i64 20
;; @001f v65 = iadd v49, v64 ; v64 = 20
;; @001f v78 = uadd_overflow_trap v65, v88, user2
;; @001f v77 = iadd v135, v76
;; @001f v79 = icmp ugt v78, v77
;; @001f trapnz v79, user2
;; @001f v44 = iconst.i32 0
;; v126 = icmp.i32 eq v2, v44 ; v44 = 0
;; @001f v5 = iconst.i64 4
;; @001f v80 = iadd v65, v88
;; @001f brif v126, block6, block5(v65)
;;
;; block5(v83: i64):
;; @001f v136 = iconst.i32 0
;; @001f store user2 little region13 v136, v83 ; v136 = 0
;; @001f v137 = iconst.i64 4
;; @001f v138 = iadd v83, v137 ; v137 = 4
;; @001f v86 = icmp eq v138, v80
;; @001f brif v86, block6, block5(v138)
;;
;; block6:
;; @0022 jump block1
;;
;; block1:
;; @0022 return v40
;; }