1 ; RUN: llc < %s -asm-verbose=false | FileCheck %s
3 ; Test that the wasm-store-results pass makes users of stored values use the
4 ; result of store expressions to reduce get_local/set_local traffic.
6 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
7 target triple = "wasm32-unknown-unknown"
9 ; CHECK-LABEL: single_block:
11 ; CHECK: i32.const $push{{[0-9]+}}=, 0
12 ; CHECK: i32.store $push[[STORE:[0-9]+]]=, $0, $pop{{[0-9]+}}
13 ; CHECK: return $pop[[STORE]]{{$}}
14 define i32 @single_block(i32* %p) {