[PATCH] Fix __builtin_ir{ound,int}{,f,l} expansion (PR middle-end/52592)

2012-03-15 Thread Jakub Jelinek
Hi! If __builtin_ir{int,ound}{,f,l} expansion through optab fails, we would end up generating a call to __builtin_ir{int,ound}{,f,l} function (there is no ir{int,ound}{,f,l} in libm), which is wrong, we should expand it as (int) lr{int,ound}{,f,l} in that case (similarly to what we already do

Re: [PATCH] Fix __builtin_ir{ound,int}{,f,l} expansion (PR middle-end/52592)

2012-03-15 Thread Richard Guenther
On Thu, Mar 15, 2012 at 2:06 PM, Jakub Jelinek ja...@redhat.com wrote: Hi! If __builtin_ir{int,ound}{,f,l} expansion through optab fails, we would end up generating a call to __builtin_ir{int,ound}{,f,l} function (there is no ir{int,ound}{,f,l} in libm), which is wrong, we should expand it