diff options
author | Janis Johnson <janis187@us.ibm.com> | 2002-01-22 21:25:15 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2002-01-22 21:25:15 +0000 |
commit | 11303d15ae2ef463efda87d80619f06dc1c9f8ab (patch) | |
tree | 9bb3c7430ea1a6c8f5a120bf2e03e76529ac3173 /gcc/loop.c | |
parent | 3196dfde9a1b7facc176f069afe169f08d484b65 (diff) | |
download | gcc-11303d15ae2ef463efda87d80619f06dc1c9f8ab.zip gcc-11303d15ae2ef463efda87d80619f06dc1c9f8ab.tar.gz gcc-11303d15ae2ef463efda87d80619f06dc1c9f8ab.tar.bz2 |
Makefile.in (loop.o): Depend on OPTABS_H.
* Makefile.in (loop.o): Depend on OPTABS_H.
* loop.c (expand_builtin_prefetch): Check the prefetch operand
against the predicate.
From-SVN: r49095
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -54,6 +54,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "toplev.h" #include "predict.h" #include "insn-flags.h" +#include "optabs.h" /* Not really meaningful values, but at least something. */ #ifndef SIMULTANEOUS_PREFETCHES @@ -4019,6 +4020,10 @@ emit_prefetch_instructions (loop) loc = reg; } + /* Make sure the address operand is valid for prefetch. */ + if (! (*insn_data[(int)CODE_FOR_prefetch].operand[0].predicate) + (loc, Pmode)) + loc = force_reg (Pmode, loc); emit_insn_before (gen_prefetch (loc, GEN_INT (info[i].write), GEN_INT (3)), before_insn); |