OSDN Git Service

PR target/26515
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Oct 2009 17:37:48 +0000 (17:37 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Oct 2009 17:37:48 +0000 (17:37 +0000)
* config/cris/cris.md (andu): Check that operand 1 is one of the
general registers.  Fix typo in head comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152676 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/cris/cris.md

index 0714158..7b6c080 100644 (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  Stefan Dösinger  <stefan@codeweavers.com>
         
        * config/i386/i386.md (vswapmov): New.
index 79eb8da..bd14a16 100644 (file)
 ;; 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.
   "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))]