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] data prefetch support and __builtin_prefetch (take 2)


On Mon, Dec 03, 2001 at 10:50:25AM -0800, Janis Johnson wrote:
> +(define_insn "prefetch"
> +  [(prefetch (match_operand:DI 0 "address_operand" "p")
> +	     (match_operand:DI 1 "const_int_operand" "n")
> +	     (match_operand:DI 2 "const_int_operand" "n"))]
> +  ""
> +  "*
> +{
> +  static const char * const alt[2][4] = {
> +    \"lfetch.nta [%0]\",

This can be written without the extra backslashes.  Use

          (match_operand:DI 2 "const_int_operand" "n"))]
  ""
{
  static const char * const alt[2][4] = {
    "lfetch.nta [%0]",
  ...
}

Otherwise ok.


r~


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