pr34966.c (atan): Only use asm on i?86/x86_64.

* gcc.c-torture/compile/pr34966.c (atan): Only use asm
	on i?86/x86_64.

From-SVN: r131867
This commit is contained in:
Jakub Jelinek 2008-01-26 18:02:44 +01:00 committed by Jakub Jelinek
parent 62a37275fe
commit 680f02e4b4
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-01-26 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/pr34966.c (atan): Only use asm
on i?86/x86_64.
2008-01-26 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfofortran/34887

View File

@ -4,7 +4,11 @@ __inline double
atan (double __x)
{
register double __result;
#if defined(__i386__) || defined(__x86_64__)
__asm __volatile__ ("" : "=t" (__result) : "0" (__x));
#else
__result = __x;
#endif
return __result;
}