(addsi3): If TARGET_5200, use the lea insn to add small constants to
address registers. From-SVN: r13137
This commit is contained in:
parent
dfb331d694
commit
71e1e2c843
@ -2173,9 +2173,17 @@
|
|||||||
#endif
|
#endif
|
||||||
if (ADDRESS_REG_P (operands[0])
|
if (ADDRESS_REG_P (operands[0])
|
||||||
&& INTVAL (operands[2]) >= -0x8000
|
&& INTVAL (operands[2]) >= -0x8000
|
||||||
&& INTVAL (operands[2]) < 0x8000
|
&& INTVAL (operands[2]) < 0x8000)
|
||||||
&& !TARGET_5200)
|
{
|
||||||
return \"add%.w %2,%0\";
|
if (!TARGET_5200)
|
||||||
|
return \"add%.w %2,%0\";
|
||||||
|
else
|
||||||
|
#ifdef MOTOROLA
|
||||||
|
return \"lea (%c2,%0),%0\";
|
||||||
|
#else
|
||||||
|
return \"lea %0@(%c2),%0\";
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return \"add%.l %2,%0\";
|
return \"add%.l %2,%0\";
|
||||||
}")
|
}")
|
||||||
|
Loading…
Reference in New Issue
Block a user