http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52592
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-15 07:25:21 UTC --- Created attachment 26897 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26897 Patch which fixes the problem I don't have enough time to regress test this patch though. But here is the ChangeLog for it: * builtins.c (expand_builtin_int_roundingfn_2): If the expanding of iround optab fails, then expand using lround call.