[Bug target/98697] shl not vectorized for v16qi and v8hi with MVE

2021-01-21 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98697 --- Comment #4 from Hongtao.liu --- (In reply to Hongtao.liu from comment #3) > (In reply to Christophe Lyon from comment #2) > > Why would this be different from right shift, where we don't miss the > > optimization? > > It's supposed to be han

[Bug target/98697] shl not vectorized for v16qi and v8hi with MVE

2021-01-21 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98697 --- Comment #3 from Hongtao.liu --- (In reply to Christophe Lyon from comment #2) > Why would this be different from right shift, where we don't miss the > optimization? It's supposed to be handled in vect_recog_over_widening_pattern, but failed

[Bug target/98697] shl not vectorized for v16qi and v8hi with MVE

2021-01-21 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98697 --- Comment #2 from Christophe Lyon --- Why would this be different from right shift, where we don't miss the optimization?

[Bug target/98697] shl not vectorized for v16qi and v8hi with MVE

2021-01-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98697 --- Comment #1 from Richard Biener --- it looks like unpack from short int to int is not supported? That is, the usual issue is that a[i] << b[i] is a shift of int << ... because of C integral promotion rules.