This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 4/5] [ARC] Fix divdf3 emulation for arcem.
* Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com> [2017-03-20 12:43:29 +0100]:
> Missing case for ARCEM cpus. Add it.
>
> libgcc/
> 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
>
> * config/arc/ieee-754/divdf3.S (__divdf3): Use __ARCEM__.
Looks good, thanks,
Andrew
> ---
> libgcc/config/arc/ieee-754/divdf3.S | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/libgcc/config/arc/ieee-754/divdf3.S b/libgcc/config/arc/ieee-754/divdf3.S
> index 4d6aae2..b8085a6 100644
> --- a/libgcc/config/arc/ieee-754/divdf3.S
> +++ b/libgcc/config/arc/ieee-754/divdf3.S
> @@ -189,13 +189,13 @@ __divdf3:
> asl r8,DBL1H,12
> lsr r12,DBL1L,20
> lsr r4,r8,26
> -#ifdef __HS__
> +#if defined (__ARCHS__) || defined (__ARCEM__)
> add3 r10,pcl,60 ; (.Ldivtab-.) >> 3
> #else
> add3 r10,pcl,59 ; (.Ldivtab-.) >> 3
> #endif
> ld.as r4,[r10,r4]
> -#ifdef __HS__
> +#if defined (__ARCHS__) || defined (__ARCEM__)
> ld.as r9,[pcl,182]; [pcl,(-((.-.L7ff00000) >> 2))] ; 0x7ff00000
> #else
> ld.as r9,[pcl,180]; [pcl,(-((.-.L7ff00000) >> 2))] ; 0x7ff00000
> @@ -299,14 +299,14 @@ __divdf3:
> rsub r7,r6,5
> asr r10,r12,28
> bmsk r4,r12,27
> -#ifdef __HS__
> +#if defined (__ARCHS__) || defined (__ARCEM__)
> min r7, r7, 31
> asr DBL0L, r4, r7
> #else
> asrs DBL0L,r4,r7
> #endif
> add DBL1H,r11,r10
> -#ifdef __HS__
> +#if defined (__ARCHS__) || defined (__ARCEM__)
> abs.f r10, r4
> sub.mi r10, r10, 1
> #endif
> --
> 1.9.1
>