------- Additional Comments From dalej at gcc dot gnu dot org 2005-08-01 18:46 ------- This is very close to the problem I ran into reported here: http://gcc.gnu.org/ml/gcc/2005-07/msg01084.html That one is fixed by the combination of the patch in PR 19653 and the patch here: http://gcc.gnu.org/ml/gcc/2005-07/msg01123.html However that is insufficient to fix this case. The difficulty is that regmove causes the same pseudo to be used for the operands and the result of the multiply. Consider that reg as all one, ST(0) is the best place for it, and you get the extra move. If you turn off regmove, the patches above fix this problem. Maybe we should do that? It seems like the register allocator should be doing what regmove is trying to do.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19398