rs6000.c (rs6000_gimple_fold_builtin): Add handling for early expansion of vector...
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Fri, 2 Jun 2017 14:21:55 +0000 (14:21 +0000)
committerWill Schmidt <willschm@gcc.gnu.org>
Fri, 2 Jun 2017 14:21:55 +0000 (14:21 +0000)
commitab82e126e749c99f77a0fa7230ee104fe47660d9
treee1f4b2806b0abd4d407a401fe795d7dfe94f6627
parentfb3a2657b2e571534871e38e5ed16395544a5f13
rs6000.c (rs6000_gimple_fold_builtin): Add handling for early expansion of vector absolute builtins.

[gcc]

2017-05-31  Will Schmidt  <will_schmidt@vnet.ibm.com>

* config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
for early expansion of vector absolute builtins.

[gcc/testsuite]

2017-05-31  Will Schmidt  <will_schmidt@vnet.ibm.com>

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

From-SVN: r248830
12 files changed:
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-char-fwrapv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-char.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-floatdouble.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-int-fwrapv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-int.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-longlong-fwrapv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-longlong.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short-fwrapv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short.c [new file with mode: 0644]