re PR rtl-optimization/13260 (Incorrect optimisation of loop termination condition)
authorJ"orn Rennecke <joern.rennecke@superh.com>
Thu, 4 Dec 2003 20:10:29 +0000 (20:10 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Thu, 4 Dec 2003 20:10:29 +0000 (20:10 +0000)
commit3db1b4348632d87e6a372ffc19a1b533b5a78a3a
tree35d881277dbd8c7c9a0b309b60cc803e360617e6
parenta0a8f530d945e53d9f8e0f21b1480c344ffa9e6b
re PR rtl-optimization/13260 (Incorrect optimisation of loop termination condition)

PR optimization/13260
* sh-protos.h (sh_expand_t_scc): Declare.
* sh.h (PREDICATE_CODES): Add cmpsi_operand.
* sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
* sh.md (cmpsi): Use cmpsi_operand.  If T_REG is compared to
something that is not a CONST_INT, copy it into a pseudo register.
(subc): Fix description of new T value.
(slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
(sltu, sleu, sgeu): Likewise.
(seq, sne): Likewise. Use sh_expand_t_scc.

From-SVN: r74294
gcc/ChangeLog
gcc/config/sh/sh-protos.h
gcc/config/sh/sh.c
gcc/config/sh/sh.h
gcc/config/sh/sh.md