From: Bob Wilson Date: Fri, 4 Apr 2008 03:55:15 +0000 (+0000) Subject: xtensa.c (xtensa_secondary_reload_class): Use a secondary input reload for subword... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ee909cb673969faac7dad765a85df6122a79a78;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c077778a4f0..d5bbc0381f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-04-03 Bob Wilson + + * 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 PR target/35713 diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index d61625d83b5..2518aedc000 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -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; }