]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/69010 (Boolean vector constant with a scalar mode is expanded incorrectly)
authorIlya Enkovich <enkovich.gnu@gmail.com>
Mon, 11 Jan 2016 10:27:17 +0000 (10:27 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Mon, 11 Jan 2016 10:27:17 +0000 (10:27 +0000)
commit83834c094206928ec7a3c43850f5e04889da640e
treeae811e2413e2fbf7ab3c5f0df5dc2cf1b1af4dc4
parentdcf89d578058ed538e3dcf4e151d99a267e81bf4
re PR target/69010 (Boolean vector constant with a scalar mode is expanded incorrectly)

gcc/

PR target/69010
* expr.c (expand_expr_real_1): For boolean vector constants
with a scalar mode use const_scalar_mask_from_tree.
(const_scalar_mask_from_tree): New.
* optabs.c (expand_vec_cond_mask_expr): Use mask mode
assigned to a mask type to handle constants.

gcc/testsuite/

PR target/69010
* gcc.target/i386/pr69010.c: New test.

From-SVN: r232216
gcc/ChangeLog
gcc/expr.c
gcc/optabs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr69010.c [new file with mode: 0644]