From 99d13c40244720f821c7a342748e314cac4c729b Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 28 Oct 1994 17:12:18 -0400 Subject: [PATCH] (reload_outqi): Correctly handle scratch assignments for unaligned case when ADDR is a REG. From-SVN: r8353 --- gcc/config/alpha/alpha.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/alpha/alpha.md b/gcc/config/alpha/alpha.md index dc5e91e..df3b80e 100644 --- a/gcc/config/alpha/alpha.md +++ b/gcc/config/alpha/alpha.md @@ -3247,13 +3247,14 @@ rtx addr = get_unaligned_address (operands[0]); rtx scratch1 = gen_rtx (REG, DImode, REGNO (operands[2])); rtx scratch2 = gen_rtx (REG, DImode, REGNO (operands[2]) + 1); + rtx scratch3 = scratch1; rtx seq; if (GET_CODE (addr) == REG) scratch1 = addr; seq = gen_unaligned_storeqi (addr, operands[1], scratch1, - scratch2, scratch1); + scratch2, scratch3); alpha_set_memflags (seq, operands[0]); emit_insn (seq); } -- 2.7.4