simplify-rtx.c (simplify_ternary_operation): Add simplification for (!c) != {0,....
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 15 Jul 2015 16:31:46 +0000 (16:31 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Wed, 15 Jul 2015 16:31:46 +0000 (16:31 +0000)
commit34222cd6cc4da69d858da0776b5248b3c7b0aa61
tree04c76af59269f7a1c5e9de6f9dc08394b7276f58
parentff302741f10c7d6f014eb46f7632b57bdc43a4f5
simplify-rtx.c (simplify_ternary_operation): Add simplification for (!c) != {0,...,0} ? a : b for vector modes.

[gcc]

2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* simplify-rtx.c (simplify_ternary_operation): Add simplification
for (!c) != {0,...,0} ? a : b for vector modes.

[gcc/testsuite]

2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/vec-cmp-sel.c: New test.

From-SVN: r225840
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c [new file with mode: 0644]