blob: 1c114a198eca408e44ed8e13c66037cfd0b45101 [file] [log] [blame] [edit]
(module
(func $func (param $x i32) (param $y i32)
;; shifting twice by 1 is the same as by 2
(drop
(i32.shl
(i32.shl
(get_local $x)
(i32.const 1)
)
(i32.const 1)
)
)
(drop
(i32.shl
(get_local $y) ;; note how the better pattern has a different local; we abstract over them
(i32.const 2)
)
)
)
)