shithub: riscv

ref: 6c5e9f73197f0e6bfc59119541312a1d281133b2
dir: /sys/src/libc/power64/getfcr.s/

View raw version
TEXT	getfcr(SB), $8
	MOVFL	FPSCR, F3
	FMOVD	F3, f-8(SP)
	MOVW	-4(SP), RARG
	RETURN

TEXT	getfsr(SB), $8
	MOVFL	FPSCR, F3
	FMOVD	F3, f-8(SP)
	MOVW	-4(SP), RARG
	RETURN

TEXT	setfcr(SB), $8
	SYNC
	MOVW	RARG, -4(SP)
	FMOVD	-8(SP), F3
	MOVFL	F3, FPSCR
	ISYNC
	RETURN

TEXT	setfsr(SB), $8
	SYNC
	MOVW	RARG, -4(SP)
	FMOVD	-8(SP), F3
	MOVFL	F3, FPSCR
	ISYNC
	RETURN