mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 18:07:03 +00:00
3b041227f7
We chan't share code for udivsi3 and udivsi3_i4, because they have a different clobber list. Copy udivsi3 from gcc-4.1.2. As shown in arch/sh/lib/udivsi3.S (and -Os.S), .global __udivsi3_i4i .global __udivsi3_i4 .global __udivsi3 __udivsi3_i4i: ... Three symbols are sharing one code, which is actually udivsi3_i4i. But, this results unwanted code with gcc 4.1. In gcc, these three are treated as pseudo instructions that have their own clobber list apart from the usual calling convention. According to sh's machine description. The clobber list is as follows: - udivsi3_i4i : t,r1,pr,mach,macl - udivsi3_i4 : t,r0,r1,r4,r5,pr,dr0,dr2,dr4 - udivsi3 : t,r4,pr The caller of udivsi3 will be left with a broken r1 and mac*. gcc-4.1.x and older(at least to 3.4) generate udivsi3. ST's gcc-4.1.1 seems to be OK because it has _i4i. Signed-off-by: Takashi YOSHII <yoshii.takashi@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org> |
||
---|---|---|
.. | ||
ashiftrt.S | ||
ashldi3.c | ||
ashlsi3.S | ||
ashrdi3.c | ||
ashrsi3.S | ||
checksum.S | ||
clear_page.S | ||
copy_page.S | ||
delay.c | ||
div64-generic.c | ||
div64.S | ||
io.c | ||
libgcc.h | ||
lshrdi3.c | ||
lshrsi3.S | ||
Makefile | ||
mcount.S | ||
memchr.S | ||
memcpy-sh4.S | ||
memcpy.S | ||
memmove.S | ||
memset.S | ||
movmem.S | ||
strlen.S | ||
udiv_qrnnd.S | ||
udivsi3_i4i-Os.S | ||
udivsi3_i4i.S | ||
udivsi3.S |