shithub: riscv

ref: d5f2d2cc3fc7c2d3701e906df5d2d53781c4ee9c
dir: /sys/src/ape/lib/ap/arm/vlop.s/

View raw version
TEXT	_mulv(SB), $0
	MOVW	4(FP),R8	/* l0 */
	MOVW	8(FP),R11	/* h0 */
	MOVW	12(FP),R4	/* l1 */
	MOVW	16(FP),R5	/* h1 */
	MULLU	R8,R4,(R6, R7)	/* l0*l1 */
	MUL	R8,R5,R5	/* l0*h1 */
	MUL	R11,R4,R4	/* h0*l1 */
	ADD	R4,R6
	ADD	R5,R6
	MOVW	R6,4(R0)
	MOVW	R7,0(R0)
	RET