re PR middle-end/87248 (Bad code for masked operations involving signed ints)
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 Sep 2018 09:18:55 +0000 (11:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Sep 2018 09:18:55 +0000 (11:18 +0200)
commit9095b53a8c4a5663b89db946462ff534fe0836e7
treeda1ef5ad548d824044517acc96b14c4f5dff6844
parent03e992aceab3207fa92d26c44dd5b4845f1c23ed
re PR middle-end/87248 (Bad code for masked operations involving signed ints)

PR middle-end/87248
* fold-const.c (fold_ternary_loc) <case COND_EXPR>: Verify also that
BIT_AND_EXPR's second operand is a power of two.  Formatting fix.

* c-c++-common/torture/pr87248.c: New test.

From-SVN: r264230
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/pr87248.c [new file with mode: 0644]