* config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2007 17:29:44 +0000 (17:29 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2007 17:29:44 +0000 (17:29 +0000)
commit083405c7e6db4322e9ef6bfcaa32f0cb4a4aa80d
tree3b0a683627d420dedb289b8f502bb2e97bd39aa2
parentab9eaa977c00fd8bf14795b62ac4b2a41e5362f0
* config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
(parity<mode>2): New define_expand using rs6000_emit_parity.
* config/rs6000/rs6000.c (rs6000_emit_popcount,
rs6000_emit_parity): New functions.
* config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
rs6000_emit_parity): Prototype here.

* gcc.target/powerpc/popcount-1.c: New test case.
* gcc.target/powerpc/parity-1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121653 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/testsuite/gcc.target/powerpc/parity-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/popcount-1.c [new file with mode: 0644]