This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[xstormy16] fix r,W moves
- From: DJ Delorie <dj at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Nov 2008 15:39:13 -0500
- Subject: [xstormy16] fix r,W moves
Approved by Nick off-list, and committed.
* config/stormy16/stormy16.md (movqi_internal, movhi_internal):
Moves to/from below100 space (W) can only use r0-r7.
Index: stormy16.md
===================================================================
--- stormy16.md (revision 142097)
+++ stormy16.md (working copy)
@@ -129,14 +129,14 @@
[(set (match_operand:QI 0 "nonimmediate_nonstack_operand" "")
(match_operand:QI 1 "general_operand" ""))]
""
"{ xstormy16_expand_move (QImode, operands[0], operands[1]); DONE; }")
(define_insn "movqi_internal"
- [(set (match_operand:QI 0 "nonimmediate_nonstack_operand" "=r,m,e,e,T,r,S,W,r")
- (match_operand:QI 1 "general_operand" "r,e,m,i,i,i,i,ir,W"))]
+ [(set (match_operand:QI 0 "nonimmediate_nonstack_operand" "=r,m,e,e,T,r,S,W,e")
+ (match_operand:QI 1 "general_operand" "r,e,m,i,i,i,i,ie,W"))]
""
"@
mov %0,%1
mov.b %0,%1
mov.b %0,%1
mov %0,%1
@@ -181,13 +181,13 @@
[(set (match_operand:HI 0 "nonimmediate_nonstack_operand" "")
(match_operand:HI 1 "xs_hi_general_operand" ""))]
""
"{ xstormy16_expand_move (HImode, operands[0], operands[1]); DONE; }")
(define_insn "movhi_internal"
- [(set (match_operand:HI 0 "nonimmediate_nonstack_operand" "=r,m,e,e,T,r,S,W,r")
+ [(set (match_operand:HI 0 "nonimmediate_nonstack_operand" "=r,m,e,e,T,r,S,W,e")
(match_operand:HI 1 "xs_hi_general_operand" "r,e,m,L,L,i,i,ie,W"))]
""
"@
mov %0,%1
mov.w %0,%1
mov.w %0,%1