1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build wasm
6
7TEXT ·returnint(SB),NOSPLIT|NOFRAME,$0-8
8	MOVD	24(SP), R1 // ok to access beyond stack frame with NOFRAME
9	CallImport // interpreted as writing result
10	RET
11
12TEXT ·returnbyte(SB),$0-9
13	RET // want `RET without writing`
14