2012-08-10 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Aug 2012 13:35:34 +0000 (13:35 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Aug 2012 13:35:34 +0000 (13:35 +0000)
commitd962ee89139953c60f17fb56fb6d53dbed120d57
tree31eaec0e13000baa8f1cb7ab7d41cd89f9b560a4
parentfd291195fb951dc73ca124b7bac2c44c4717e123
2012-08-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/54219
* fold-const.c (fold_ternary_loc): Do not reverse the mask
when canonicalizing it when folding VEC_PERM_EXPR.

* gcc.dg/torture/vector-shuffle1.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190297 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/vector-shuffle1.c [new file with mode: 0644]