Comments

Hello,
here is a patch to handle constant folding of mixed vector-integer
operations. I could have shared the loop with the vector-vector case, but
that would have meant re-testing if arg2 was a vector at every iteration
(I can go back to that version if you prefer).
bootstrap+testsuite on x86_64-linux-gnu
2013-04-11 Marc Glisse <marc.glisse@inria.fr>
gcc/
* fold-const.c (const_binop): Handle vector shifts by a scalar.
(fold_binary_loc): Call const_binop also for mixed vector-scalar
operations.
gcc/testsuite/
* gcc.dg/fold-cstvecshift.c: New testcase.