shithub: riscv

ref: f0f2d452c873255dec4b3359b3f93e349be0f2c5
dir: /sys/src/libc/power/getfcr.s/

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

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

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

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