https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86994
--- Comment #3 from uros at gcc dot gnu.org --- Author: uros Date: Sun Aug 19 19:10:37 2018 New Revision: 263652 URL: https://gcc.gnu.org/viewcvs?rev=263652&root=gcc&view=rev Log: PR target/86994 * config/i386/i386.c (ix86_rtx_costs) [case SET]: Check source for register_operand when calling ix86_set_reg_reg_cost. [case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF]: Set *total to 0 for operands that satisfy x86_64_immediate_operand predicate and to 1 otherwise. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.c