mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-30 23:11:09 +08:00
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:
parent
62a37275fe
commit
680f02e4b4
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user