re PR target/26515 (peephole2 causes unrecognized insn, zero_extending non-general register)

PR target/26515
	* config/cris/cris.md (andu): Check that operand 1 is one of the
	general registers.  Fix typo in head comment.

From-SVN: r152679
This commit is contained in:
Hans-Peter Nilsson 2009-10-12 17:59:16 +00:00 committed by Hans-Peter Nilsson
parent 9f9a8f7dec
commit 0452f0e7f1
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-10-12 Hans-Peter Nilsson <hp@axis.com>
PR target/26515
* config/cris/cris.md (andu): Check that operand 1 is one of the
general registers. Fix typo in head comment.
2009-10-12 Jakub Jelinek <jakub@redhat.com>
PR target/41680

View File

@ -4918,7 +4918,7 @@
;; It should be:
;; movu.b some_byte,reg_32
;; and.b const,reg_32
;; but is turns into:
;; but it turns into:
;; move.b some_byte,reg_32
;; and.d const,reg_32
;; Fix it here.
@ -4935,7 +4935,9 @@
"REGNO (operands[2]) == REGNO (operands[0])
&& INTVAL (operands[3]) <= 65535 && INTVAL (operands[3]) >= 0
&& !CRIS_CONST_OK_FOR_LETTER_P (INTVAL (operands[3]), 'I')
&& !side_effects_p (operands[1])"
&& !side_effects_p (operands[1])
&& (!REG_P (operands[1])
|| REGNO (operands[1]) <= CRIS_LAST_GENERAL_REGISTER)"
;; FIXME: CC0 valid except for M (i.e. CC_NOT_NEGATIVE).
[(set (match_dup 0) (match_dup 4))
(set (match_dup 5) (match_dup 6))]