code: 9ferno

ref: a62654ed1b81fb99271d6a7e8ebe7a870ea1099c
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