From da3243b2b6c29514a0550cfcd4055fdf13c448f3 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Fri, 24 Feb 2017 23:34:37 +0100 Subject: [PATCH] cris: Fix for RTL checking * config/cris/cris.md: Use correct operand in a define_peephole2. From-SVN: r245723 --- gcc/ChangeLog | 4 ++++ gcc/config/cris/cris.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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])) -- 2.30.2