Commit 612105a6 by Denis Chertykov Committed by Denis Chertykov

avr.md ("*movsf","*movsi"): Pass NULL to output_movsisf instead of which_alternative.

	* config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
	output_movsisf instead of which_alternative.

	* config/avr/avr.c (output_reload_inhi): Check for NULL ponter.

From-SVN: r36048
parent 6bec29c9
Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
* config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
output_movsisf instead of which_alternative.
* config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl> Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
* config/avr/avr-protos.h: (avr_output_ascii) Removed. * config/avr/avr-protos.h: (avr_output_ascii) Removed.
......
...@@ -4545,6 +4545,10 @@ output_reload_inhi (insn, operands, len) ...@@ -4545,6 +4545,10 @@ output_reload_inhi (insn, operands, len)
rtx *operands; rtx *operands;
int *len; int *len;
{ {
int tmp;
if (!len)
len = &tmp;
if (GET_CODE (operands[1]) == CONST_INT) if (GET_CODE (operands[1]) == CONST_INT)
{ {
int val = INTVAL (operands[1]); int val = INTVAL (operands[1]);
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
(match_operand:SI 1 "general_operand" "r,L,Qm,rL,i,i"))] (match_operand:SI 1 "general_operand" "r,L,Qm,rL,i,i"))]
"(register_operand (operands[0],SImode) "(register_operand (operands[0],SImode)
|| register_operand (operands[1],SImode) || const0_rtx == operands[1])" || register_operand (operands[1],SImode) || const0_rtx == operands[1])"
"* return output_movsisf (insn, operands, which_alternative);" "* return output_movsisf (insn, operands, NULL);"
[(set_attr "length" "4,4,8,8,4,10") [(set_attr "length" "4,4,8,8,4,10")
(set_attr "cc" "none,set_zn,clobber,clobber,clobber,clobber")]) (set_attr "cc" "none,set_zn,clobber,clobber,clobber,clobber")])
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
(match_operand:SF 1 "general_operand" "r,G,Qm,r,F,F"))] (match_operand:SF 1 "general_operand" "r,G,Qm,r,F,F"))]
"register_operand (operands[0], SFmode) "register_operand (operands[0], SFmode)
|| register_operand (operands[1], SFmode)" || register_operand (operands[1], SFmode)"
"* return output_movsisf (insn, operands, which_alternative);" "* return output_movsisf (insn, operands, NULL);"
[(set_attr "length" "4,4,8,8,4,10") [(set_attr "length" "4,4,8,8,4,10")
(set_attr "cc" "none,set_zn,clobber,clobber,clobber,clobber")]) (set_attr "cc" "none,set_zn,clobber,clobber,clobber,clobber")])
......
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