xtensa.c (xtensa_secondary_reload_class): Use a secondary input reload for subword loads from the constant pool.

* config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
        secondary input reload for subword loads from the constant pool.

From-SVN: r133889
This commit is contained in:
Bob Wilson 2008-04-04 03:55:15 +00:00 committed by Bob Wilson
parent 383e91e472
commit 3ee909cb67
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-04-03 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
secondary input reload for subword loads from the constant pool.
2008-04-03 Janis Johnson <janis187@us.ibm.com>
PR target/35713

View File

@ -2839,7 +2839,8 @@ xtensa_secondary_reload_class (enum reg_class class,
if (!isoutput)
{
if (class == FP_REGS && constantpool_mem_p (x))
if ((class == FP_REGS || GET_MODE_SIZE (mode) < UNITS_PER_WORD)
&& constantpool_mem_p (x))
return RL_REGS;
}