shithub: purgatorio

ref: 61870c24fae357b78029ce54be0c004e1ffdb3c7
dir: /lib9/setfcr-Linux-power.S/

View raw version

#define	FN(x)	.type x,@function; .global x; x

FN(getfcr):
	mffs	%f0
	stfd	%f0,-16(%r1)
	lw	%r3,-12(%r1)
	blr

FN(getfsr):
	mffs	%f0
	stfd	%f0,-16(%r1)
	lw	%r3,-12(%r1)
	blr

FN(setfsr):
	sync
	stw	%r3,-12(%r1)
	lfd	%f0,-16(%r1)
	mtfsf	0xff, %f0
	isync
	blr

FN(setfcr):
	sync
	stw	%r3,-12(%r1)
	lfd	%f0,-16(%r1)
	mtfsf	0xff, %f0
	isync
	blr