about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc32/sparcv8/sdiv.S
blob: 81c3ac1c971386f66152e88493b7108ef4a2399d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Sparc v8 has divide.
 */

#include <sysdep.h>

ENTRY(.div)

	sra	%o0, 31, %o2
	wr	%o2, 0, %y
	ret
	 sdiv	%o0, %o1, %o0

END(.div)