diff options
author | m.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-15 15:29:38 +0000 |
---|---|---|
committer | m.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-15 15:29:38 +0000 |
commit | e81c27fb8a76f21e305abe910495430815cee2fe (patch) | |
tree | e366a58d6c462cf79e5ce9c014b1f1d888a32544 /gcc/config/c4x/libgcc.S | |
parent | 8758222cee9ee752a5f351e93d8ad51947bd1630 (diff) | |
download | gcc-e81c27fb8a76f21e305abe910495430815cee2fe.tar.gz |
* config/c4x/libgcc.S (___divhi3, ___modhi3): Fix long long
divide and modulo sign problem.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24681 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/c4x/libgcc.S')
-rw-r--r-- | gcc/config/c4x/libgcc.S | 8 |
1 files 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: |