aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/mips.md
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2004-08-23 08:11:40 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2004-08-23 08:11:40 +0000
commitb1f58428618b90ec7e79df0e113e592b3a68e9f2 (patch)
treec28e0cb7746e9824389ddb37adad3cd4e8c59515 /gcc/config/mips/mips.md
parent237b301e9705a54466e179875b944bc69cda6fe0 (diff)
downloadgcc-b1f58428618b90ec7e79df0e113e592b3a68e9f2.zip
gcc-b1f58428618b90ec7e79df0e113e592b3a68e9f2.tar.gz
gcc-b1f58428618b90ec7e79df0e113e592b3a68e9f2.tar.bz2
mips.md (*mov<mode>_ra): Name previously unnamed MIPS16 $31 store insns.
* config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16 $31 store insns. Redefine using :GPR. From-SVN: r86417
Diffstat (limited to 'gcc/config/mips/mips.md')
-rw-r--r--gcc/config/mips/mips.md24
1 files changed, 7 insertions, 17 deletions
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index 781eafe..fa7ee20 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -3432,13 +3432,13 @@ beq\t%2,%.,1b\;\
;; memory, since we don't have a constraint to match $31. This
;; instruction can be generated by save_restore_insns.
-(define_insn ""
- [(set (match_operand:DI 0 "stack_operand" "=m")
- (reg:DI 31))]
- "TARGET_MIPS16 && TARGET_64BIT"
- "sd\t$31,%0"
- [(set_attr "type" "store")
- (set_attr "mode" "DI")])
+(define_insn "*mov<mode>_ra"
+ [(set (match_operand:GPR 0 "stack_operand" "=m")
+ (reg:GPR 31))]
+ "TARGET_MIPS16"
+ "<store>\t$31,%0"
+ [(set_attr "type" "store")
+ (set_attr "mode" "<MODE>")])
(define_insn "*movdi_32bit"
[(set (match_operand:DI 0 "nonimmediate_operand" "=d,d,d,m,*x,*d,*B*C*D,*B*C*D,*d,*m")
@@ -3555,16 +3555,6 @@ beq\t%2,%.,1b\;\
DONE;
})
-;; We can only store $ra directly into a small sp offset.
-
-(define_insn ""
- [(set (match_operand:SI 0 "stack_operand" "=m")
- (reg:SI 31))]
- "TARGET_MIPS16"
- "sw\t$31,%0"
- [(set_attr "type" "store")
- (set_attr "mode" "SI")])
-
;; The difference between these two is whether or not ints are allowed
;; in FP registers (off by default, use -mdebugh to enable).