diff options
author | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-25 04:32:46 +0000 |
---|---|---|
committer | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-25 04:32:46 +0000 |
commit | ad12b905b283755a0991b2d94bf34f3036f1a39c (patch) | |
tree | f1dfc1e8aeae8dd677d1aadda7014ef911864d93 /gcc/loop.c | |
parent | 762a8ed1b9fbdb713a2ac653f6b2151068cd5c1e (diff) | |
download | gcc-ad12b905b283755a0991b2d94bf34f3036f1a39c.tar.gz |
2002-01-24 Aldy Hernandez <aldyh@redhat.com>
* loop.c (emit_prefetch_instructions): Use the prefetch insn's
mode, not Pmode.
* builtins.c (expand_builtin_prefetch): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index 3f874a8652a..ebd59af59ff 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -4023,7 +4023,8 @@ emit_prefetch_instructions (loop) /* Make sure the address operand is valid for prefetch. */ if (! (*insn_data[(int)CODE_FOR_prefetch].operand[0].predicate) - (loc, Pmode)) + (loc, + insn_data[(int)CODE_FOR_prefetch].operand[0].mode)) loc = force_reg (Pmode, loc); emit_insn_before (gen_prefetch (loc, GEN_INT (info[i].write), GEN_INT (3)), |