diff mbox

[SH,committed] Fix iterators conversion oversight

Message ID 1346591634.2200.39.camel@yam-132-YW-E178-FTW
State New
Headers show

Commit Message

Oleg Endo Sept. 2, 2012, 1:13 p.m. UTC
Hello,

My last change that converted some of the SH patterns to use iterators
introduced a problem on SH2A, where I missed to pass '<MODE>mode'
instead of 'QImode' in one of the patterns.
Committed as obvious.

Cheers,
Oleg


ChangeLog:

	* config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass
	iterated mode to sh_legitimate_index_p instead of QImode.
diff mbox

Patch

Index: gcc/config/sh/sh.md
===================================================================
--- gcc/config/sh/sh.md	(revision 190840)
+++ gcc/config/sh/sh.md	(working copy)
@@ -5576,7 +5576,7 @@ 
 	    (plus:SI
 	      (match_operand:SI 1 "arith_reg_operand" "%r,r,r")
 	      (match_operand:SI 2 "const_int_operand" "<disp04>,N,<disp12>")))))]
-  "TARGET_SH2A && sh_legitimate_index_p (QImode, operands[2], true, true)"
+  "TARGET_SH2A && sh_legitimate_index_p (<MODE>mode, operands[2], true, true)"
   "@
 	mov.<bw>	@(%O2,%1),%0
 	mov.<bw>	@%1,%0