* 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
+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.
+
2002-01-24 Alexandre Oliva <aoliva@redhat.com>
* config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
if (HAVE_prefetch)
{
if (! (*insn_data[(int)CODE_FOR_prefetch].operand[0].predicate)
- (op0, Pmode))
+ (op0,
+ insn_data[(int)CODE_FOR_prefetch].operand[0].mode))
op0 = force_reg (Pmode, op0);
emit_insn (gen_prefetch (op0, op1, op2));
}
/* 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)),