Skip to content

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

1.2 KB
Raw Blame
;;! test = "optimize"
;;! target = "x86_64"
;;! flags = ["-Wmemory64", "-Omemory-may-move=n"]

(module
  (memory i64 1)
  (func $load (param i64) (result i32)
    (i32.load (local.get 0)))
)
;; function u0:0(i64 vmctx, i64, i64) -> i32 tail {
;;     region0 = 123 ""
;;     region1 = 160 ""
;;     region2 = 215 ""
;;     region3 = 105 ""
;;     region4 = 171 ""
;;     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):
;; @0020                               v3 = iconst.i64 0xffff_fffc
;; @0020                               v4 = icmp ugt v2, v3  ; v3 = 0xffff_fffc
;; @0020                               v7 = iconst.i64 0
;; @0020                               v5 = load.i64 notrap aligned readonly can_move region2 v0+56
;; @0020                               v6 = iadd v5, v2
;; @0020                               v8 = select_spectre_guard v4, v7, v6  ; v7 = 0
;; @0020                               v9 = load.i32 little region4 v8
;; @0023                               jump block1
;;
;;                                 block1:
;; @0023                               return v9
;; }