re PR target/41015 (SH: miscompilation for sh4-linux)

PR target/41015
	* longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
	(sub_ddmmss): Likewise.

From-SVN: r150635
This commit is contained in:
SUGIOKA Toshinobu 2009-08-11 05:57:35 +09:00 committed by Kaz Kojima
parent e8f43da6f9
commit 092f3f9795
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
PR target/41015
* longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
(sub_ddmmss): Likewise.
2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
PR bootstrap/41018

View File

@ -982,7 +982,7 @@ UDItype __umulsidi3 (USItype, USItype);
" or r1,%0" \
: "=r" (q), "=&z" (r) \
: "1" (n1), "r" (n0), "rm" (d), "r" (&__udiv_qrnnd_16) \
: "r1", "r2", "r4", "r5", "r6", "pr"); \
: "r1", "r2", "r4", "r5", "r6", "pr", "t"); \
} while (0)
#define UDIV_TIME 80
@ -990,7 +990,7 @@ UDItype __umulsidi3 (USItype, USItype);
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
__asm__ ("clrt;subc %5,%1; subc %4,%0" \
: "=r" (sh), "=r" (sl) \
: "0" (ah), "1" (al), "r" (bh), "r" (bl))
: "0" (ah), "1" (al), "r" (bh), "r" (bl) : "t")
#endif /* __sh__ */