Commit 231a1e52 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/38208 (gcc.c-torture/compile/20080806-1.c)

	PR target/38208
	* reload1.c (eliminate_regs_in_insn): For trunc_int_for_mode use
	mode of PLUS, not mode of the eliminated register.

From-SVN: r142088
parent b15b7ef8
2008-11-21 Jakub Jelinek <jakub@redhat.com>
PR target/38208
* reload1.c (eliminate_regs_in_insn): For trunc_int_for_mode use
mode of PLUS, not mode of the eliminated register.
2008-11-21 Uros Bizjak <ubizjak@gmail.com> 2008-11-21 Uros Bizjak <ubizjak@gmail.com>
* config/i386/mmx.md (mmx_nand<mode>3): Rename to mmx_andnot<mode>3. * config/i386/mmx.md (mmx_nand<mode>3): Rename to mmx_andnot<mode>3.
......
/* Reload pseudo regs into hard regs for insns that require hard regs. /* Reload pseudo regs into hard regs for insns that require hard regs.
Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -3299,7 +3299,7 @@ eliminate_regs_in_insn (rtx insn, int replace) ...@@ -3299,7 +3299,7 @@ eliminate_regs_in_insn (rtx insn, int replace)
{ {
rtx to_rtx = ep->to_rtx; rtx to_rtx = ep->to_rtx;
offset += ep->offset; offset += ep->offset;
offset = trunc_int_for_mode (offset, GET_MODE (reg)); offset = trunc_int_for_mode (offset, GET_MODE (plus_cst_src));
if (GET_CODE (XEXP (plus_cst_src, 0)) == SUBREG) if (GET_CODE (XEXP (plus_cst_src, 0)) == SUBREG)
to_rtx = gen_lowpart (GET_MODE (XEXP (plus_cst_src, 0)), to_rtx = gen_lowpart (GET_MODE (XEXP (plus_cst_src, 0)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment