re PR rtl-optimization/56275 (ICE in simplify_subreg, at simplify-rtx.c:5261 with...
authorUros Bizjak <ubizjak@gmail.com>
Mon, 11 Feb 2013 16:05:44 +0000 (17:05 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 11 Feb 2013 16:05:44 +0000 (17:05 +0100)
commitb63fe0076d20fa0ddd660e53d882792e54d1bef7
tree75844929969655f7bf9fe5bbc236484d6ff418c5
parentba9146c16bc6a7f3539e4cef5f5a9a8207de66ad
re PR rtl-optimization/56275 (ICE in simplify_subreg, at simplify-rtx.c:5261 with vector code.)

PR rtl-optimization/56275
* simplify-rtx.c (avoid_constant_pool_reference): Check that
offset is non-negative and less than cmode size before
calling simplify_subreg.

testsuite/ChangeLog:

PR rtl-optimization/56275
* gcc.dg/pr56275.c: New test.

From-SVN: r195944
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr56275.c [new file with mode: 0644]