a question about peephole2
Richard Henderson
rth@redhat.com
Fri May 13 19:51:00 GMT 2005
On Fri, May 13, 2005 at 11:37:16PM +0800, zouq wrote:
> original program is:
> mul.d $f1, $f1, $f0
> add.d $f2, $f2, $f1
> div.d $f3, $f0, $f1;
>
> after i compile used my changed gcc, it becomes:
> madd.d $f2, $f1, $0
> div.d $f3, $f0, $f1
>
> as you can see, the value of $f1 is wrong!!
Check
(rtx_equal_p (operands[3], operands[0])
|| peep2_reg_dead_p (2, operands[0]))
r~
More information about the Gcc
mailing list