Commit 500164d2 by Marek Michalkiewicz Committed by Marek Michalkiewicz

libgcc.S (__mulhi3): Correct tests to exit the loop when multiplier or multiplicand is zero.


	* config/avr/libgcc.S (__mulhi3): Correct tests to exit the loop
	when multiplier or multiplicand is zero.

From-SVN: r40933
parent 112333d3
2001-03-28 Marek Michalkiewicz <marekm@linux.org.pl>
* config/avr/libgcc.S (__mulhi3): Correct tests to exit the loop
when multiplier or multiplicand is zero.
2001-03-28 Bernd Schmidt <bernds@redhat.com>
* cselib.c (hash_rtx): Don't do tail recursion elimination by hand.
......
......@@ -137,11 +137,13 @@ __mulhi3_skip1:
add r_arg2L,r_arg2L ; shift multiplicand
adc r_arg2H,r_arg2H
cpc r_arg2L,__zero_reg__
cp r_arg2L,__zero_reg__
cpc r_arg2H,__zero_reg__
breq __mulhi3_exit ; while multiplicand != 0
lsr r_arg1H ; gets LSB of multiplier
ror r_arg1L
cp r_arg1L,__zero_reg__
cpc r_arg1H,__zero_reg__
brne __mulhi3_loop ; exit if multiplier = 0
__mulhi3_exit:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment