From d37f862e3f9a9e4d4bb3e8ee56f358fb899c09b7 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 1 Sep 1994 19:29:51 -0400 Subject: [PATCH] (stack-adjust/push peepholes): Addresses are moved with "addr", not with "movd". From-SVN: r8014 --- gcc/config/ns32k/ns32k.md | 6 ++++++ 1 file changed, 6 insertions(+) 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 \"\"; -- 2.30.2