The following patch fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59835
Committed as rev. 206676. 2014-01-16 Vladimir Makarov <vmaka...@redhat.com> PR rtl-optimization/59835 * ira.c (ira_init_register_move_cost): Increase cost for impossible modes. Index: ira.c =================================================================== --- ira.c (revision 206675) +++ ira.c (working copy) @@ -1587,7 +1587,7 @@ cost = 65535; else cost = (ira_memory_move_cost[mode][cl1][0] - + ira_memory_move_cost[mode][cl2][1]); + + ira_memory_move_cost[mode][cl2][1]) * 2; } else {