http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59308
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 32258 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32258&action=edit gcc49-pr59308.patch Patch (only tested on x86_64-linux with --target_board=unix\{-m32,-m32/-march=i386,-m64\} where some of those tests previously also failed with -march=i386 variant). Though, I wonder if it wouldn't be better to just compile or run those tests just on targets which do support -mbranch-cost=2 option (mips/avr/s390/i?86/x86_64) and ignore all other targets. The tests are testing GIMPLE behavior anyway.