https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to kugan from comment #3) > > really you should handle more > > than two arguments to phis. > I am not sure how we can handle phi stmt with more than two arguments here. > Any hints please? Yes they are all interger constants but one of them. Also I think you do have another bug where the conversion is an extension the original interger has to fit in the new type. That is if you converting from char to int.