re PR target/82498 (Missed optimization for x86 rotate instruction)
authorJakub Jelinek <jakub@redhat.com>
Fri, 13 Oct 2017 07:17:06 +0000 (09:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 13 Oct 2017 07:17:06 +0000 (09:17 +0200)
commitef8c92e8e76b51040e0c3a37ff7dd0a3463a727d
tree08438b3b35a482ee1339d6e41f02ee6f48ff4ca5
parenta68f286ccc36bc6d5e483383e490e2531307466b
re PR target/82498 (Missed optimization for x86 rotate instruction)

PR target/82498
* config/i386/ia32intrin.h (__rold, __rord, __rolq, __rorq): Allow
any values of __C while still being pattern recognizable as a simple
rotate instruction.

* gcc.dg/ubsan/pr82498.c: New test.

From-SVN: r253708
gcc/ChangeLog
gcc/config/i386/ia32intrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr82498.c [new file with mode: 0644]