OSDN Git Service

* config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Sep 2003 09:57:11 +0000 (09:57 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Sep 2003 09:57:11 +0000 (09:57 +0000)
commitd13344c88bab38138008d750ffd2ba1d41c2fe7f
tree8e7462b7e5414a8979fdd4598a06cbb3fe7b3da1
parent8eed96ae3aafd2b724b7b1c1c62cd50763dbe535
* config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
(mcore_secondary_reload_class): Declare.
(mcore_output_inline_const_forced): Remove.
* config/mcore/mcore.md (movsi): Remove the code that forced
non-inlineable constants into a register if the target was r15
or the stack pointer.  Remove constant restrictions from the main
define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
of an r <- P alternative.  Remove fallback define_insn for reload.
(movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
define_insn.  Use mcore_output_move in the remaining define_insn.
Adjust condition and constraints in the way as for movsi.
(movdi): Always split unacceptable constants into two.  Use
simplify_gen_subreg instead of operand_subword{,_force}.
* config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
(mcore_output_move): Support HImode and QImode moves as well.
(mcore_m15_operand_p): New function.
(mcore_reload_class): Use it to detect cases where LRW_REGS are better.
(mcore_secondary_reload_class): New function.
* config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
terms of mcore_secondary_reload_class.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71330 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/mcore/mcore-protos.h
gcc/config/mcore/mcore.c
gcc/config/mcore/mcore.h
gcc/config/mcore/mcore.md