aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2007-09-13 10:54:12 -0400
committerSandra Loosemore <sandra@gcc.gnu.org>2007-09-13 10:54:12 -0400
commitf29adf5b7b4b43196cd98d95bdfed1b5a571a697 (patch)
tree695b344b448cb12088ea38e7625bc864b421adb6
parent1f1752ec46f51eb2e0e7244c52d3467f88b2e671 (diff)
downloadgcc-f29adf5b7b4b43196cd98d95bdfed1b5a571a697.zip
gcc-f29adf5b7b4b43196cd98d95bdfed1b5a571a697.tar.gz
gcc-f29adf5b7b4b43196cd98d95bdfed1b5a571a697.tar.bz2
mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with {d}addiu and a negative immediate such that it works with...
2007-09-13 Sandra Loosemore <sandra@codesourcery.com> David Ung <davidu@mips.com> gcc/ * config/mips/mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with {d}addiu and a negative immediate such that it works with MIPS16 instructions. Co-Authored-By: David Ung <davidu@mips.com> From-SVN: r128468
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/mips/mips.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bb59539..7f50b61 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2007-09-13 Sandra Loosemore <sandra@codesourcery.com>
+ David Ung <davidu@mips.com>
+
+ * config/mips/mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with
+ {d}addiu and a negative immediate such that it works with MIPS16
+ instructions.
+
2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/33418
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index c9d2742..c8cad32 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -2781,8 +2781,8 @@ do { \
#define ASM_OUTPUT_REG_PUSH(STREAM,REGNO) \
do \
{ \
- fprintf (STREAM, "\t%s\t%s,%s,8\n\t%s\t%s,0(%s)\n", \
- TARGET_64BIT ? "dsubu" : "subu", \
+ fprintf (STREAM, "\t%s\t%s,%s,-8\n\t%s\t%s,0(%s)\n", \
+ TARGET_64BIT ? "daddiu" : "addiu", \
reg_names[STACK_POINTER_REGNUM], \
reg_names[STACK_POINTER_REGNUM], \
TARGET_64BIT ? "sd" : "sw", \