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 genoutput


Richard Henderson <rth@cygnus.com> writes:

> On Sun, Sep 10, 2000 at 04:03:42AM -0300, Alexandre Oliva wrote:
> > Use `\;' to separate multiple assembly instructions.
> 
> Yes, that can be done.  But look at ia64.md set_bsp and tell me
> how readable that is.

Alexandre ! What definition readable better ?

(define_insn "*movstrqi_insn"
  [(set (mem:BLK (match_operand:HI 0 "register_operand" "e"))
	(mem:BLK (match_operand:HI 1 "register_operand" "e")))
   (use (match_operand:QI 2 "register_operand" "r"))
   (use (match_operand:QI 3 "const_int_operand" "i"))
   (clobber (match_dup 2))
   (clobber (match_dup 0))
   (clobber (match_dup 1))]
  ""
  "\\
	ld __tmp_reg__,%a1+
	st %a0+,__tmp_reg__
	dec %2
	brne _PC_-8"
  [(set_attr "length" "4")
   (set_attr "cc" "clobber")])

(define_insn "*movstrqi_insn"
  [(set (mem:BLK (match_operand:HI 0 "register_operand" "e"))
	(mem:BLK (match_operand:HI 1 "register_operand" "e")))
   (use (match_operand:QI 2 "register_operand" "r"))
   (use (match_operand:QI 3 "const_int_operand" "i"))
   (clobber (match_dup 2))
   (clobber (match_dup 0))
   (clobber (match_dup 1))]
  ""
  "ld __tmp_reg__,%a1+\;st %a0+,__tmp_reg__\;dec %2\;brne _PC_-8"
  [(set_attr "length" "4")
   (set_attr "cc" "clobber")])



Denis.


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