re PR tree-optimization/85467 (ICE: verify_gimple failed: non-trivial conversion...
authorJakub Jelinek <jakub@redhat.com>
Thu, 19 Apr 2018 19:16:18 +0000 (21:16 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 19 Apr 2018 19:16:18 +0000 (21:16 +0200)
commit18108d94e9aff71811a7923fe67db7626378f565
treeddd35d8dcd17acb5ddfc2bf7b8105dbe62222911
parentf62a0ddd737a3faa3925ae211bd22fa8ca62c112
re PR tree-optimization/85467 (ICE: verify_gimple failed: non-trivial conversion at assignment with -O2 -fno-tree-ccp --param=sccvn-max-scc-size=10)

PR tree-optimization/85467
* fold-const.c (fold_ternary_loc) <case BIT_FIELD_REF>: Use
VECTOR_TYPE_P macro.  If type is vector type, VIEW_CONVERT_EXPR the
VECTOR_CST element to type.

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

From-SVN: r259507
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr85467.c [new file with mode: 0644]