Re: [PATCH i386] Use ordered comparisons for rounding builtins when -mno-ieee-fp

2013-10-12 Thread Uros Bizjak
Hello! > 2013-10-11 Alexander Monakov > > * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode > provided by ix86_fp_compare_mode instead of CCFPUmode. > > testsuite/: > * gcc.target/i386/builtin-ucmp.c: New test. OK for mainline. Thanks, Uros.

[PATCH i386] Use ordered comparisons for rounding builtins when -mno-ieee-fp

2013-10-11 Thread Alexander Monakov
Hello, With -mno-ieee-fp, or when that flag is implied by other flags such as -ffast-math, i386 backend will use ordered rather than unordered comparisons (fcom* instead of fucom*, or their SSE counterparts). Expansion of several rounding builtins currently uses unordered comparisons always, unco