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]

Re: PATCH for m68k.md


I forgot to attach patch on previous mail.  Here is the associated
patch. -Will Cohen

Will Cohen wrote:
> 
> When building the compiler for the m68k (actually, the m5200 target). I
> found that the the template for the movqi was missing the memory operand
> in the constraints. This causes the compiler to fail in some when
> compiling cp-demangle.c in libiberty with the "-m5200" option.  The
> following insn pattern cannot be converted:
> 
> (insn 1203 995 996 (set (reg:QI 8 %a0)
>         (mem/f:QI (plus:SI (reg:SI 14 %a6)
>                 (const_int -5 [0xfffffffb])) 0)) 37 {*m68k.md:1060}
> (nil)
>     (nil))
> 
> The attached patch fixes this problem The change log is below:
> 
> 2001-02-23  Will Cohen  <wcohen@redhat.com>
> 
>         * config/m68k/m68k.md: Update movqi pattern for TARGET_5200.
> 
> Is it okay to apply this patch?
> 
> -Will Cohen
Index: m68k.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/m68k/m68k.md,v
retrieving revision 1.36
diff -c -2 -p -r1.36 m68k.md
*** m68k.md	2000/11/28 21:31:43	1.36
--- m68k.md	2001/02/23 21:57:38
***************
*** 1060,1064 ****
  (define_insn ""
    [(set (match_operand:QI 0 "general_operand" "=d<Q>,dm,d*a")
! 	(match_operand:QI 1 "general_src_operand" "dmi,d<Q>,di*a"))]
    "TARGET_5200"
    "* return output_move_qimode (operands);")
--- 1060,1064 ----
  (define_insn ""
    [(set (match_operand:QI 0 "general_operand" "=d<Q>,dm,d*a")
! 	(match_operand:QI 1 "general_src_operand" "dmi,d<Q>,dmi*a"))]
    "TARGET_5200"
    "* return output_move_qimode (operands);")

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