S/390: Add support for vec_shr
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Tue, 26 Sep 2017 10:33:37 +0000 (10:33 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 26 Sep 2017 10:33:37 +0000 (10:33 +0000)
commit252c6f56386b674a6fb9329d928269858a2cfe35
tree07a8f278e4653804d7b867a257b8c1602e7e5000
parentda7853cc18318966aafa5a3cf48aedc4e671404d
S/390: Add support for vec_shr

gcc/ChangeLog:

2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/predicates.md ("const_shift_by_byte_operand"): New
predicate.
* config/s390/vector.md ("*vec_srb<mode>"): Change modes to V_128
and V16QI.
("*vec_slb<mode>"): New insn pattern.
("vec_shr_<mode>"): New expander.
* config/s390/vx-builtins.md ("vec_slb<mode>"): Turn into expander
and force the shift count operand to V16QImode.
("vec_srb<mode>"): Set shift count mode to V16QI.

From-SVN: r253193
gcc/ChangeLog
gcc/config/s390/predicates.md
gcc/config/s390/vector.md
gcc/config/s390/vx-builtins.md