rs6000.c (rs6000_gimple_fold_builtin): Add handling for early expansion of vec_min...
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Fri, 2 Jun 2017 15:02:25 +0000 (15:02 +0000)
committerWill Schmidt <willschm@gcc.gnu.org>
Fri, 2 Jun 2017 15:02:25 +0000 (15:02 +0000)
commitd65d1bd970c3008e70a6418d2fdaace3f4f2e581
tree7a20d8c639f96c9410db2eee4e59d4f168848b27
parenta9945ae2868d22cfc7cce0369c32c21e298498fe
rs6000.c (rs6000_gimple_fold_builtin): Add handling for early expansion of vec_min and vec_max builtins.

[gcc]

2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
* config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
for early expansion of vec_min and vec_max builtins.
(builtin_function_type): Add min/max unsigned variants to those
identified as having unsigned arguments.

[gcc/testsuite]

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

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

From-SVN: r248834
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/fold-vec-minmax-char.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-minmax-floatdouble.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-minmax-int.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-minmax-longlong.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/fold-vec-minmax-short.c [new file with mode: 0644]