On Fri, Apr 01, 2016 at 07:22:24PM +0200, Jakub Jelinek wrote: > On Fri, Apr 01, 2016 at 07:10:06PM +0200, Marek Polacek wrote: > > On Fri, Apr 01, 2016 at 06:17:57PM +0200, Jakub Jelinek wrote: > > > Those comparisons with truthvalue_*_node would fail and DTRT. > > > Or just c_fully_fold_internal all the arguments, be ready for any future > > > further uses of VEC_COND_EXPR early? > > > > ..thus revive my earlier version of the patch that does it: > > > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > > > > 2016-04-01 Marek Polacek <pola...@redhat.com> > > > > PR c/70307 > > * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR. > > > > * gcc.dg/torture/pr70307.c: New test. > > LGTM, thanks.
Thanks. I'll wait till tomorrow to see if Joseph has any comments on this patch. Marek