[ARC] Fix divdf3 emulation for arcem.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 27 Mar 2017 10:56:35 +0000 (12:56 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 27 Mar 2017 10:56:35 +0000 (12:56 +0200)
libgcc/
2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/ieee-754/divdf3.S (__divdf3): Use __ARCEM__.

From-SVN: r246498

libgcc/ChangeLog
libgcc/config/arc/ieee-754/divdf3.S

index 4bae69f396155333aab3313d039ba1ab0dbcabfd..ada1365e4e6de6c419a18ac0a47326646cb030da 100644 (file)
@@ -1,3 +1,7 @@
+2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * config/arc/ieee-754/divdf3.S (__divdf3): Use __ARCEM__.
+
 2017-03-10  John Marino  <gnugcc@marino.st>
 
        * config/aarch64/freebsd-unwind.h: New file.
index 4d6aae282e042cb153d94e105dc730b7afc91f08..b8085a625cf20d686663e99cb2bc044a2f941579 100644 (file)
@@ -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