Skip to content

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

1.0 KB
Raw Blame
;;! target = "x86_64"

(module
  (func (export "f") (param i64 i32) (result i64)
    (local.get 0)
    (local.get 1)
    ;; If with no else. Same number of params and results.
    (if (param i64) (result i64)
      (then
        (drop)
        (i64.const -1)))))

;; function u0:0(i64 vmctx, i64, i64, i32) -> i64 tail {
;;     region0 = 123 ""
;;     region1 = 160 ""
;;     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, v2: i64, v3: i32):
;; @002a                               brif v3, block2, block3(v2)
;;
;;                                 block2:
;; @002d                               v4 = iconst.i64 -1
;; @002f                               jump block3(v4)  ; v4 = -1
;;
;;                                 block3(v5: i64):
;; @0030                               jump block1
;;
;;                                 block1:
;; @0030                               return v5
;; }