Subject: Bug fix for ns32k gcc2.6.0
To: Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
From: Matthias Pfaller <leo@marco.de>
List: port-pc532
Date: 09/01/1994 17:45:57
Hi Richard,

yet another of my bugs fixed.

	Matthias

Sun Aug 30 22:16:03 1994  Matthias Pfaller  (leo@marco.de)

	* ns32k.md (stack-adjust/push peepholes): Addresses are
	moved with "addr", not with "movd".

*** 1.2	1994/08/28 20:06:07
--- ns32k.md	1994/08/28 21:09:48
***************
*** 2702,2707 ****
--- 2702,2709 ----
    if (GET_CODE (operands[1]) == CONST_INT)
  	output_asm_insn (output_move_dconst (INTVAL (operands[1]), \"%$%1,0(sp)\"),
  			 operands);
+   else if (address_operand (operands[1], SImode))
+ 	output_asm_insn (\"addr %a1,0(sp)\", operands);
    else
  	output_asm_insn (\"movd %1,0(sp)\", operands);
    return \"\";
***************
*** 2722,2733 ****
--- 2724,2739 ----
    if (GET_CODE (operands[1]) == CONST_INT)
  	output_asm_insn (output_move_dconst (INTVAL (operands[1]), \"%$%1,4(sp)\"),
  			 operands);
+   else if (address_operand (operands[1], SImode))
+ 	output_asm_insn (\"addr %a1,0(sp)\", operands);
    else
  	output_asm_insn (\"movd %1,4(sp)\", operands);
  
    if (GET_CODE (operands[3]) == CONST_INT)
  	output_asm_insn (output_move_dconst (INTVAL (operands[3]), \"%$%3,0(sp)\"),
  			 operands);
+   else if (address_operand (operands[3], SImode))
+ 	output_asm_insn (\"addr %a3,0(sp)\", operands);
    else
  	output_asm_insn (\"movd %3,0(sp)\", operands);
    return \"\";

------------------------------------------------------------------------------