mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 15:27:25 +08:00
builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode if POINTERS_EXTEND_UNSIGNED is defined.
* builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode if POINTERS_EXTEND_UNSIGNED is defined. From-SVN: r51778
This commit is contained in:
parent
40e5b28399
commit
1e533e4b01
@ -1,3 +1,8 @@
|
||||
2002-04-02 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
* builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
|
||||
if POINTERS_EXTEND_UNSIGNED is defined.
|
||||
|
||||
2002-04-02 Richard Henderson <rth@redhat.com>
|
||||
|
||||
PR opt/3967
|
||||
|
@ -787,10 +787,17 @@ expand_builtin_prefetch (arglist)
|
||||
#ifdef HAVE_prefetch
|
||||
if (HAVE_prefetch)
|
||||
{
|
||||
if (! (*insn_data[(int)CODE_FOR_prefetch].operand[0].predicate)
|
||||
(op0,
|
||||
insn_data[(int)CODE_FOR_prefetch].operand[0].mode))
|
||||
op0 = force_reg (Pmode, op0);
|
||||
if ((! (*insn_data[(int)CODE_FOR_prefetch].operand[0].predicate)
|
||||
(op0,
|
||||
insn_data[(int)CODE_FOR_prefetch].operand[0].mode)) ||
|
||||
(GET_MODE(op0) != Pmode))
|
||||
{
|
||||
#ifdef POINTERS_EXTEND_UNSIGNED
|
||||
if (GET_MODE(op0) != Pmode)
|
||||
op0 = convert_memory_address (Pmode, op0);
|
||||
#endif
|
||||
op0 = force_reg (Pmode, op0);
|
||||
}
|
||||
emit_insn (gen_prefetch (op0, op1, op2));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user