Re: [PATCH] builtins: Fix up expand_builtin_int_roundingfn_2 [PR105211]

2022-04-11 Thread Richard Biener via Gcc-patches
> Am 11.04.2022 um 18:45 schrieb Jakub Jelinek via Gcc-patches > : > > Hi! > > The expansion of __builtin_iround{,f,l} etc. builtins in some cases > emits calls to a different fallback builtin. To locate the right builtin > it uses mathfn_built_in_1 with the type of the first argument. > If

[PATCH] builtins: Fix up expand_builtin_int_roundingfn_2 [PR105211]

2022-04-11 Thread Jakub Jelinek via Gcc-patches
Hi! The expansion of __builtin_iround{,f,l} etc. builtins in some cases emits calls to a different fallback builtin. To locate the right builtin it uses mathfn_built_in_1 with the type of the first argument. If its TYPE_MAIN_VARIANT is {float,double,long_double}_type_node, all is fine, but on the