Commit e07e020b by Ramana Radhakrishnan Committed by Ramana Radhakrishnan

arm.c (thumb2_legitimate_index_p): Initialize val after checking for integers.

2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	* config/arm/arm.c (thumb2_legitimate_index_p): Initialize
	val after checking for integers.

From-SVN: r148170
parent 4970671d
2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/arm.c (thumb2_legitimate_index_p): Initialize
val after checking for integers.
2009-06-04 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
......
......@@ -4266,15 +4266,17 @@ thumb2_legitimate_index_p (enum machine_mode mode, rtx index, int strict_p)
if (mode == DImode || mode == DFmode)
{
HOST_WIDE_INT val = INTVAL (index);
/* ??? Can we assume ldrd for thumb2? */
/* Thumb-2 ldrd only has reg+const addressing modes. */
if (code != CONST_INT)
if (code == CONST_INT)
{
HOST_WIDE_INT val = INTVAL (index);
/* ??? Can we assume ldrd for thumb2? */
/* Thumb-2 ldrd only has reg+const addressing modes. */
/* ldrd supports offsets of +-1020.
However the ldr fallback does not. */
return val > -256 && val < 256 && (val & 3) == 0;
}
else
return 0;
/* ldrd supports offsets of +-1020.
However the ldr fallback does not. */
return val > -256 && val < 256 && (val & 3) == 0;
}
if (code == MULT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment