------- Comment #6 from jakub at gcc dot gnu dot org 2010-09-14 16:18 ------- Created an attachment (id=21794) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21794&action=view) gcc46-pr45633-1.patch
The s[i] = -s[i]; line is also unnecessary in the testcase. One possible patch attached, allows also MINUS_EXPR with vector pointer on lhs/rhs1 and vector sizetype on rhs2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45633