[Bug middle-end/59037] New: ICE when accessing invalid element (nelts + 1) of vector

2013-11-07 Thread matthew.leach at arm dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: matthew.leach at arm dot com Created attachment 31179 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31179&action=edit Reduced test case for ICE Output of ./gcc -v -save-te

[Bug middle-end/59037] ICE when accessing invalid element (nelts + 1) of vector

2013-11-07 Thread matthew.leach at arm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59037 --- Comment #1 from Matthew Leach --- Having a quick dig around the code, I think fold-const.c:16718 looks suspicious: if (offset/part_widthi <= TYPE_VECTOR_SUBPARTS (op00type)) Likewise in cp/semantics.c:9122 and gimple-fold.c:3407. Should thi