Skip to content

Commit

Permalink
gcc/
Browse files Browse the repository at this point in the history
	PR rtl-optimization/55052
	* simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193909 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
rsandifo committed Nov 28, 2012
1 parent 062c246 commit 69bdc9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2012-11-28 Richard Sandiford <rdsandiford@googlemail.com>

PR rtl-optimization/55052
* simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check.

2012-11-28 David Edelsohn <dje.gcc@gmail.com>

* target.def (use_blocks_for_decl_p): New hook.
Expand Down
2 changes: 1 addition & 1 deletion gcc/simplify-rtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -5875,7 +5875,7 @@ simplify_subreg (enum machine_mode outermode, rtx op,

/* A SUBREG resulting from a zero extension may fold to zero if
it extracts higher bits that the ZERO_EXTEND's source bits. */
if (GET_CODE (op) == ZERO_EXTEND)
if (GET_CODE (op) == ZERO_EXTEND && SCALAR_INT_MODE_P (innermode))
{
unsigned int bitpos = subreg_lsb_1 (outermode, innermode, byte);
if (bitpos >= GET_MODE_PRECISION (GET_MODE (XEXP (op, 0))))
Expand Down

0 comments on commit 69bdc9b

Please sign in to comment.