re PR target/36473 (Generate bit test (bt) instructions)
authorUros Bizjak <uros@gcc.gnu.org>
Tue, 10 Jun 2008 10:29:36 +0000 (12:29 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 10 Jun 2008 10:29:36 +0000 (12:29 +0200)
commit33ee5810003d5d7d6fb61b0af706cfac21d4ba6c
treeadb12f0c0cddf0e92f91c40cfd912d8549be148b
parentf1ebbb579c845765a4ca795bb82b58738f83b796
re PR target/36473 (Generate bit test (bt) instructions)

PR target/36473
* config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
Add m_CORE2 and m_GENERIC.
* config/i386/predicates.md (bt_comparison_operator): New predicate.
* config/i386/i386.md (*btdi_rex64): New instruction pattern.
(*btsi): Ditto.
(*jcc_btdi_rex64): New instruction and split pattern.
(*jcc_btsi): Ditto.
(*jcc_btsi_1): Ditto.
(*btsq): Fix Intel asm dialect operand order.
(*btrq): Ditto.
(*btcq): Ditto.

testsuite/ChangeLog:

PR target/36473
* testsuite/gcc.target/i386/bt-1.c: New test.
* testsuite/gcc.target/i386/bt-2.c: Ditto.

From-SVN: r136615
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/config/i386/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/bt-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/bt-2.c [new file with mode: 0644]