(stack-adjust/push peepholes): Addresses are moved with "addr", not
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 1 Sep 1994 23:29:51 +0000 (19:29 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 1 Sep 1994 23:29:51 +0000 (19:29 -0400)
with "movd".

From-SVN: r8014

gcc/config/ns32k/ns32k.md

index 5bd05fa9697abcc9d9bca949a4737f58b7e6b9e2..cfd4cfd2ef4f5b8c6feca9577ea338fc2f9a0133 100644 (file)
   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 \"\";
   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 \"\";