aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Koch <gavin@cygnus.com>1998-02-12 08:21:38 +0000
committerGavin Romig-Koch <gavin@gcc.gnu.org>1998-02-12 08:21:38 +0000
commit2e72fa6af1d3d3a808b2f0d3d951d35163c11d11 (patch)
tree0a7a0afd3f0a720990a914e6c1ea26b731055b39
parent0f4775477e454f5b59a676d9b892d19f4923160d (diff)
downloadgcc-2e72fa6af1d3d3a808b2f0d3d951d35163c11d11.zip
gcc-2e72fa6af1d3d3a808b2f0d3d951d35163c11d11.tar.gz
gcc-2e72fa6af1d3d3a808b2f0d3d951d35163c11d11.tar.bz2
mips.md (extendsidi2): Allow extension to/from a non-mips16 register.
* mips.md (extendsidi2): Allow extension to/from a non-mips16 register. From-SVN: r17866
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.md8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1dc02d3..f72266e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Thu Feb 12 11:18:37 1998 Gavin Koch <gavin@cygnus.com>
+
+ * mips.md (extendsidi2): Allow extension to/from a non-mips16
+ register.
+
Thu Feb 12 00:04:16 1998 Marc Lehmann <pcg@goof.com>
* i386.c: Conditionally include <stdlib.h>, <string.h>, and
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index 67e8ee4..76e0d43 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -3584,13 +3584,13 @@ move\\t%0,%z4\\n\\
;; doing a move.
(define_insn "extendsidi2"
- [(set (match_operand:DI 0 "register_operand" "=d,*d,d,d")
- (sign_extend:DI (match_operand:SI 1 "nonimmediate_operand" "d,*x,R,m")))]
+ [(set (match_operand:DI 0 "register_operand" "=d,y,d,*d,d,d")
+ (sign_extend:DI (match_operand:SI 1 "nonimmediate_operand" "d,d,y,*x,R,m")))]
"TARGET_64BIT"
"* return mips_move_1word (operands, insn, FALSE);"
- [(set_attr "type" "move,hilo,load,load")
+ [(set_attr "type" "move,move,move,hilo,load,load")
(set_attr "mode" "DI")
- (set_attr "length" "1,1,1,2")])
+ (set_attr "length" "1,1,1,1,1,2")])
;; These patterns originally accepted general_operands, however, slightly
;; better code is generated by only accepting register_operands, and then