This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

i960.md constraints error


hi folks!

There is a constraint error in one of the patterns in the i960 port.
Here is a patch that fixes it.

Ok to install?
Aldy

2001-01-10  Aldy Hernandez  <aldyh@redhat.com>

        * config/i960/i960.md: Change modifier to + on the zero_extract
        pattern after the (rotate -2 reg) canonicalization pattern.

Index: i960.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i960/i960.md,v
retrieving revision 1.17
diff -c -r1.17 i960.md
*** i960.md     2000/11/28 21:31:41     1.17
--- i960.md     2001/01/10 20:13:12
***************
*** 1859,1865 ****
  ;; The above pattern canonicalizes to this when both the input and output
  ;; are the same pseudo-register.
  (define_insn ""
!   [(set (zero_extract:SI (match_operand:SI 0 "register_operand" "=d")
                         (const_int 1)
                         (match_operand:SI 1 "register_operand" "d"))
        (const_int 0))]
--- 1859,1865 ----
  ;; The above pattern canonicalizes to this when both the input and output
  ;; are the same pseudo-register.
  (define_insn ""
!   [(set (zero_extract:SI (match_operand:SI 0 "register_operand" "+d")
                         (const_int 1)
                         (match_operand:SI 1 "register_operand" "d"))
        (const_int 0))]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]