From 88f08cca2804fb07fda114bf414ce0e4c18be6d3 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Wed, 12 Nov 2003 14:05:42 +0000 Subject: [PATCH] * config/sh/sh.md (prefetch): New pattern. From-SVN: r73492 --- gcc/ChangeLog | 4 ++++ gcc/config/sh/sh.md | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a749add..393e405 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-11-12 J"orn Rennecke + + * config/sh/sh.md (prefetch): New pattern. + 2003-11-11 Eric Christopher * reload1.c (reload): Verify that addresses for diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index bad8c66..faef8b5 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -10689,6 +10689,19 @@ mov.l\\t1f,r0\\n\\ "byterev %1, %0" [(set_attr "type" "arith_media")]) +(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")]) + ;; The following description models the ;; SH4 pipeline using the DFA based scheduler. ;; The DFA based description is better way to model -- 2.7.4