rs6000.c: Add include of ssa-propagate.h for update_call_from_tree().
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Fri, 23 Jun 2017 14:40:26 +0000 (14:40 +0000)
committerWill Schmidt <willschm@gcc.gnu.org>
Fri, 23 Jun 2017 14:40:26 +0000 (14:40 +0000)
commit52607f7ea8d62d0d6abdbc1288da70e75944865c
tree3d9fbb6110f9d75f52d32108f31fb59256d6a01d
parent54357b3b84538e0f26b6501fd91bb98170995ff5
rs6000.c: Add include of ssa-propagate.h for update_call_from_tree().

[gcc]

2017-06-23  Will Schmidt  <will_schmidt@vnet.ibm.com>

* config/rs6000/rs6000.c: Add include of ssa-propagate.h for
update_call_from_tree().  (rs6000_gimple_fold_builtin): Add
handling for early expansion of vector shifts (sl,sr,sra,rl).
(builtin_function_type): Add vector shift right instructions
to the unsigned argument list.

[gcc/testsuite]

2017-06-23  Will Schmidt  <will_schmidt@vnet.ibm.com>

* gcc.target/powerpc/fold-vec-shift-char.c: New.
* gcc.target/powerpc/fold-vec-shift-int.c: New.
* gcc.target/powerpc/fold-vec-shift-longlong.c: New.
* gcc.target/powerpc/fold-vec-shift-short.c: New.
* gcc.target/powerpc/fold-vec-shift-left.c: New.
* gcc.target/powerpc/fold-vec-shift-left-fwrapv.c: New.
* gcc.target/powerpc/fold-vec-shift-left-longlong-fwrapv.c: New.
* gcc.target/powerpc/fold-vec-shift-left-longlong.c: New.

From-SVN: r249591
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/fold-vec-shift-char.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-shift-int.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-fwrapv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong-fwrapv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-shift-longlong.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-shift-short.c [new file with mode: 0644]