https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67103
--- Comment #2 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Thu Aug 13 09:11:13 2015 New Revision: 226853 URL: https://gcc.gnu.org/viewcvs?rev=226853&root=gcc&view=rev Log: [RTL-ifcvt] Improve conditional select ops on immediates (fix failing x86_64 cmov tests) PR rtl-optimization/67103 * ifcvt.c (noce_try_store_flag_constants): Move x = (-(test != 0) & (b - a)) + a transformation to... (noce_try_cmove): ... Here. Try it if normal conditional move fails. Modified: trunk/gcc/ChangeLog trunk/gcc/ifcvt.c