aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/arc
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2017-03-27 12:56:35 +0200
committerClaudiu Zissulescu <claziss@gcc.gnu.org>2017-03-27 12:56:35 +0200
commitc4192ad7027a3e991134b5d6d5f2d7451d058f48 (patch)
treec5239f2ca42881b2f59f4d7e4e07563434e0f9f2 /libgcc/config/arc
parent81b98ef7697900c12d94f7f413613b8139a16624 (diff)
downloadgcc-c4192ad7027a3e991134b5d6d5f2d7451d058f48.zip
gcc-c4192ad7027a3e991134b5d6d5f2d7451d058f48.tar.gz
gcc-c4192ad7027a3e991134b5d6d5f2d7451d058f48.tar.bz2
[ARC] Fix divdf3 emulation for arcem.
libgcc/ 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com> * config/arc/ieee-754/divdf3.S (__divdf3): Use __ARCEM__. From-SVN: r246498
Diffstat (limited to 'libgcc/config/arc')
-rw-r--r--libgcc/config/arc/ieee-754/divdf3.S8
1 files 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