cris: Emit trivial btstq expected by gcc.target/cris/sync-2i.c, sync-2c.c
authorHans-Peter Nilsson <hp@axis.com>
Thu, 23 Jan 2020 01:30:49 +0000 (02:30 +0100)
committerHans-Peter Nilsson <hp@axis.com>
Sat, 9 May 2020 01:37:10 +0000 (03:37 +0200)
commit27228024598c3515389cdb378346433fb2c48551
tree2e78ae1c78d03f3b806720fdf599ba55c99b4c69
parentfb062a8b7bca66243d52213a897c7a241f2b14e1
cris: Emit trivial btstq expected by gcc.target/cris/sync-2i.c, sync-2c.c

As the added FIXME says, the new insn_and_split generates only a
small subset of the bit-tests that can be matched by "*btst" and
that were emitted by the undecc0rated cris.md at combine-time,
but it's naturally separable from a general variant by being
just what's needed for the test-cases that were previously
xfailed, and that no additional CCmodes are required.

gcc:
PR target/93372
* config/cris/cris.md (zcond): New code_iterator.
("*cbranch<mode>4_btstq<CC>"): New insn_and_split.
gcc/ChangeLog
gcc/config/cris/cris.md