From: Segher Boessenkool Date: Fri, 24 Feb 2017 22:34:37 +0000 (+0100) Subject: cris: Fix for RTL checking X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da3243b2b6c29514a0550cfcd4055fdf13c448f3;p=gcc.git cris: Fix for RTL checking * config/cris/cris.md: Use correct operand in a define_peephole2. From-SVN: r245723 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 12d4a720354..0405ddfed75 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-02-24 Segher Boessenkool + + * config/cris/cris.md: Use correct operand in a define_peephole2. + 2017-02-24 Segher Boessenkool * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL. diff --git a/gcc/config/cris/cris.md b/gcc/config/cris/cris.md index cea11ebba9e..856022ec79a 100644 --- a/gcc/config/cris/cris.md +++ b/gcc/config/cris/cris.md @@ -5034,7 +5034,7 @@ [(set (match_dup 0) (match_dup 3)) (set (match_dup 0) (and:SI (match_dup 0) (match_dup 4)))] { - machine_mode zmode = INTVAL (operands[2]) <= 255 ? QImode : HImode; + machine_mode zmode = INTVAL (operands[1]) <= 255 ? QImode : HImode; rtx op1 = (REG_S_P (operands[2]) ? gen_rtx_REG (zmode, REGNO (operands[2]))