aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/examples/lib/sub_amd64.s
blob: 78694846a73498437de2007ecd02dbefb5e0c85b (plain)
1
2
3
4
5
6
7
8
#include "textflag.h"

TEXT ·sub(SB),NOSPLIT,$0
	MOVQ x+0(FP), BX
	MOVQ y+8(FP), BP
	SUBQ BP, BX
	MOVQ BX, ret+16(FP)
	RET