From 04e4bf1f8db714a8c8a0f8a8f371504c607767b5 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 4 Apr 2008 21:07:50 +0000 Subject: [PATCH] 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: r133914 --- gcc/ChangeLog | 5 +++++ gcc/config/xtensa/xtensa.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e36f404164e0..9fdf703d4f7f 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-01 Joseph Myers * doc/include/gpl_v3.texi: Copy from trunk. diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index ee91eafc47d9..f9a90c3b1f16 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -2386,7 +2386,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; } -- 2.47.2