From cce88d8642ab0293eb36de9594c46666241440fd Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Fri, 15 Jan 1999 15:29:38 +0000 Subject: [PATCH] libgcc.S (___divhi3, ___modhi3): Fix long long divide and modulo sign problem. * config/c4x/libgcc.S (___divhi3, ___modhi3): Fix long long divide and modulo sign problem. From-SVN: r24681 --- gcc/config/c4x/libgcc.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/c4x/libgcc.S b/gcc/config/c4x/libgcc.S index fb79cf80a9e..b8e9fbaad22 100644 --- a/gcc/config/c4x/libgcc.S +++ b/gcc/config/c4x/libgcc.S @@ -958,7 +958,7 @@ ___divhi3: ldi *-ar2(4),r0 ldi *-ar2(3),r1 bge div1 - negi ir0 + not ir0 negi r0 negb r1 div1: @@ -967,7 +967,7 @@ div1: ldi *-ar2(2),r0 ldi *-ar2(1),r1 bge div2 - negi ir0 + not ir0 negi r0 negb r1 div2: @@ -995,7 +995,7 @@ ___modhi3: ldi *-ar2(4),r0 ldi *-ar2(3),r1 bge mod1 - negi ir0 + not ir0 negi r0 negb r1 mod1: @@ -1004,7 +1004,7 @@ mod1: ldi *-ar2(2),r0 ldi *-ar2(1),r1 bge mod2 - negi ir0 + not ir0 negi r0 negb r1 mod2: -- 2.30.2