Path: blob/main/tests/disas/gc/drc/ref-test-i31.wat
2453 views
;;! target = "x86_64"
;;! flags = "-W function-references,gc -C collector=drc"
;;! test = "optimize"
(module
(func (param anyref) (result i32)
(ref.test (ref i31) (local.get 0))
)
)
;; function u0:0(i64 vmctx, i64, i32) -> i32 tail {
;; gv0 = vmctx
;; gv1 = load.i64 notrap aligned readonly gv0+8
;; gv2 = load.i64 notrap aligned gv1+16
;; stack_limit = gv2
;;
;; block0(v0: i64, v1: i64, v2: i32):
;; @001e jump block1
;;
;; block1:
;; @001b v4 = iconst.i32 1
;; @001b v5 = band.i32 v2, v4 ; v4 = 1
;; @001e return v5
;; }