[Bug tree-optimization/92741] [10 Regression] ICE: verify_gimple failed (error: invalid vector types in nop conversion)
rsandifo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 2 17:51:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92741
--- Comment #6 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Mon Dec 2 17:51:08 2019
New Revision: 278910
URL: https://gcc.gnu.org/viewcvs?rev=278910&root=gcc&view=rev
Log:
Tighten check for vector types in fold_convertible_p (PR 92741)
In this PR, IPA-CP was misled into using NOP_EXPR rather than
VIEW_CONVERT_EXPR to reinterpret a vector of 4 shorts as a vector
of 2 ints. This tripped the tree-cfg.c assert I'd added in r278245.
2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
gcc/
PR middle-end/92741
* fold-const.c (fold_convertible_p): Check vector types more
thoroughly.
gcc/testsuite/
PR middle-end/92741
* gcc.dg/pr92741.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr92741.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list