A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
;;! target = "x86_64"
;;! flags = "-W function-references"
;;! test = "optimize"
(module
(global $sp (mut i32) (i32.const 0x1000))
(func
global.get $sp
i32.const 16
i32.sub
global.set $sp
)
)
;; function u0:0(i64 vmctx, i64) tail {
;; region0 = 123 ""
;; region1 = 160 ""
;; region2 = 250 ""
;; gv0 = vmctx
;; gv1 = load.i64 notrap aligned readonly can_move region0 gv0+8
;; gv2 = load.i64 notrap aligned region1 gv1+24
;; stack_limit = gv2
;;
;; block0(v0: i64, v1: i64):
;; @0020 v2 = load.i32 notrap aligned region2 v0+48
;; @0022 v3 = iconst.i32 16
;; @0024 v4 = isub v2, v3 ; v3 = 16
;; @0025 store notrap aligned region2 v4, v0+48
;; @0027 jump block1
;;
;; block1:
;; @0027 return
;; }