From: Richard Kenner Date: Thu, 1 Sep 1994 23:29:51 +0000 (-0400) Subject: (stack-adjust/push peepholes): Addresses are moved with "addr", not X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d37f862e3f9a9e4d4bb3e8ee56f358fb899c09b7;p=gcc.git (stack-adjust/push peepholes): Addresses are moved with "addr", not with "movd". From-SVN: r8014 --- diff --git a/gcc/config/ns32k/ns32k.md b/gcc/config/ns32k/ns32k.md index 5bd05fa9697..cfd4cfd2ef4 100644 --- a/gcc/config/ns32k/ns32k.md +++ b/gcc/config/ns32k/ns32k.md @@ -2702,6 +2702,8 @@ 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,12 +2724,16 @@ 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 \"\";