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]
Other format: [Raw text]

Re: patch applied to sh.md: add prefetch pattern


On Fri, 21 May 2004, DJ Delorie wrote:

> The problem I'm having is with shmedia, where "ld.b" is used for
> prefetch.  The PREF opcode is not used in the current gcc sources:
> 
> (define_insn "prefetch"
>   [(prefetch (match_operand:QI 0 "address_operand" "p")
>              (match_operand:SI 1 "const_int_operand" "n")
>              (match_operand:SI 2 "const_int_operand" "n"))]
>   "TARGET_SHMEDIA"
>   "*
> 	{
> 	  operands[0] = gen_rtx_MEM (QImode, operands[0]);
> 	  output_asm_insn (\"ld%M0.b    %m0,r63\", operands);
> 	  return \"\";
> 	}"
>   [(set_attr "type" "other")])

Okay, thanks for the clarification.

Toshi



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