summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-05 22:03:30 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-05 22:03:30 +0000
commitdac20ee70f30de48da4c934e31711800bbb182a4 (patch)
treed905381f0c8ac5613a9dd2faa88300d3c2ff6cd8 /gcc
parent1a82d6f60260b289de17b62680ac6b6fc4bd2bf3 (diff)
downloadgcc-dac20ee70f30de48da4c934e31711800bbb182a4.tar.gz
* config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
even if the calling function doesn't modify them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112720 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/bfin/lib1funcs.asm15
2 files changed, 10 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 460217491bf..c630968caaf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -3,6 +3,9 @@
* config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
got-relative addressing for anything but SImode.
+ * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
+ even if the calling function doesn't modify them.
+
2006-04-05 Richard Guenther <rguenther@suse.de>
PR tree-optimization/26919
diff --git a/gcc/config/bfin/lib1funcs.asm b/gcc/config/bfin/lib1funcs.asm
index 22e8a02a33a..77d4fff069b 100644
--- a/gcc/config/bfin/lib1funcs.asm
+++ b/gcc/config/bfin/lib1funcs.asm
@@ -64,17 +64,16 @@ ___divsi3:
.type ___modsi3, STT_FUNC;
___modsi3:
- [--SP] = RETS;
- /* P1 and P2 are preserved by divsi3 and udivsi3. */
- P1 = R0;
- P2 = R1;
- CALL ___divsi3;
- R1 = P1;
- R2 = P2;
+ [--SP] = RETS;
+ [--SP] = R0;
+ [--SP] = R1;
+ CALL ___divsi3;
+ R2 = [SP++];
+ R1 = [SP++];
R2 *= R0;
R0 = R1 - R2;
RETS = [SP++];
- RTS;
+ RTS;
#endif
#ifdef L_udivsi3