Re: [PATCH, middle-end]: Fix PR86511, traps are generated for non-trapping compares

2018-07-16 Thread Richard Biener
On Fri, Jul 13, 2018 at 5:40 PM Uros Bizjak wrote: > > As demonstrated in the PR, middle-end changes the trappines of the > compare by expanding non-trapping compare to a combination of > setcc/cmove branchless code, e.g. UNLT is split to UNORDERED setcc and > LT cmove. > > The above conversion

[PATCH, middle-end]: Fix PR86511, traps are generated for non-trapping compares

2018-07-13 Thread Uros Bizjak
As demonstrated in the PR, middle-end changes the trappines of the compare by expanding non-trapping compare to a combination of setcc/cmove branchless code, e.g. UNLT is split to UNORDERED setcc and LT cmove. The above conversion is invalid w.r.t traps, since UNLT doesn't trap on NaNs, while LT