aboutsummaryrefslogtreecommitdiff
path: root/gcc/lower-subreg.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2016-03-29 08:19:00 -0700
committerRichard Henderson <rth@gcc.gnu.org>2016-03-29 08:19:00 -0700
commit2ab9a4a5e07e609cd53c474e6572c1fbc5869d70 (patch)
tree05e79911f749d33ef7696f66cfdfedbf4bf3712c /gcc/lower-subreg.c
parentbef977d413dd0d924d6a89a83c432527c6f4e453 (diff)
re PR target/70355 (ICE: in simplify_subreg_concatn, at lower-subreg.c:617 with -funroll-loops -mavx512f)
PR middle-end/70355 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs. From-SVN: r234524
Diffstat (limited to 'gcc/lower-subreg.c')
-rw-r--r--gcc/lower-subreg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lower-subreg.c b/gcc/lower-subreg.c
index 5432d0597c5..f7b3ac4170e 100644
--- a/gcc/lower-subreg.c
+++ b/gcc/lower-subreg.c
@@ -614,7 +614,8 @@ simplify_subreg_concatn (machine_mode outermode, rtx op,
innermode = GET_MODE (op);
gcc_assert (byte < GET_MODE_SIZE (innermode));
- gcc_assert (GET_MODE_SIZE (outermode) <= GET_MODE_SIZE (innermode));
+ if (GET_MODE_SIZE (outermode) > GET_MODE_SIZE (innermode))
+ return NULL_RTX;
inner_size = GET_MODE_SIZE (innermode) / XVECLEN (op, 0);
part = XVECEXP (op, 0, byte / inner_size);