https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121675
Mikael Pettersson <mikpelinux at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpelinux at gmail dot com --- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> --- I cannot reproduce this on aarch64-linux-gnu. On x86_64-linux-gnu it reproduces with today's trunk, and my git bisect says it started with r9-2469-gc6067437d314f8: c6067437d314f803a6b7c1083f6d280caaf17ce3 is the first new commit commit c6067437d314f803a6b7c1083f6d280caaf17ce3 (HEAD) Author: Uros Bizjak <ubiz...@gmail.com> Date: Sun Aug 19 21:10:37 2018 +0200 re PR target/86994 (64-bit gcc.target/i386/20040112-1.c FAILs) 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.