re PR middle-end/83623 (ICE: in convert_move, at expr.c:248 with -march=knl and 16bit...
authorJakub Jelinek <jakub@redhat.com>
Sun, 31 Dec 2017 23:50:32 +0000 (00:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 31 Dec 2017 23:50:32 +0000 (00:50 +0100)
commitd235d09b7c86a2955bebdcb1991cd21758bcc21b
treee41ca71ae9127a80fbb1b4670ce2d762e50ef7a1
parent1f01b45746bba314752b035821f4fca9dea21f78
re PR middle-end/83623 (ICE: in convert_move, at expr.c:248 with -march=knl and 16bit vector bswap/rotate)

PR middle-end/83623
* expmed.c (expand_shift_1): For 2-byte rotates by BITS_PER_UNIT,
check for bswap in mode rather than HImode and use that in expand_unop
too.

* gcc.dg/pr83623.c: New test.

From-SVN: r256051
gcc/ChangeLog
gcc/expmed.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83623.c [new file with mode: 0644]