[Bug middle-end/82319] [8 Regression] ICE in generic_simplify_148, at generic-match.c:6436

ygribov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 25 10:05:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82319

--- Comment #4 from Yury Gribov <ygribov at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> Testing the following to match comments.

Thanks, so the assertion proved to be useful in the end.

I'd rather change cst_int_p to be
  bool cst_int_p = real_identical (&icst, cst) && ! real_isnan (cst);
and then maybe add a special case for nan case when expanding the pattern. 
I'll take a look in the evening and hopefully send a patch tomorrow if that's
fine?


More information about the Gcc-bugs mailing list