Commit dc4bbaf7 by Roger Sayle Committed by Roger Sayle

re PR rtl-optimization/13821 (IRIX 6.5 bootstrap failure: ICE in simplify_gen_subreg)


	PR optimization/13821
	* simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
	correctly calculate the lowpart offset of the contracted subreg.

From-SVN: r76393
parent f8f689a5
2004-01-22 Roger Sayle <roger@eyesopen.com>
PR optimization/13821
* simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
correctly calculate the lowpart offset of the contracted subreg.
2004-01-22 Ian Lance Taylor <ian@wasabisystems.com> 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
* doc/invoke.texi (Optimize Options): Note that --param arguments * doc/invoke.texi (Optimize Options): Note that --param arguments
......
...@@ -3404,8 +3404,9 @@ simplify_subreg (enum machine_mode outermode, rtx op, ...@@ -3404,8 +3404,9 @@ simplify_subreg (enum machine_mode outermode, rtx op,
if (outermode == origmode) if (outermode == origmode)
return XEXP (op, 0); return XEXP (op, 0);
if (GET_MODE_BITSIZE (outermode) <= GET_MODE_BITSIZE (origmode)) if (GET_MODE_BITSIZE (outermode) <= GET_MODE_BITSIZE (origmode))
return simplify_gen_subreg (outermode, XEXP (op, 0), return simplify_gen_subreg (outermode, XEXP (op, 0), origmode,
origmode, byte); subreg_lowpart_offset (outermode,
origmode));
if (SCALAR_INT_MODE_P (outermode)) if (SCALAR_INT_MODE_P (outermode))
return simplify_gen_unary (GET_CODE (op), outermode, return simplify_gen_unary (GET_CODE (op), outermode,
XEXP (op, 0), origmode); XEXP (op, 0), origmode);
......
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