2017-02-21 Segher Boessenkool <seg...@kernel.crashing.org> * config/cris/cris.md: Use correct operand in a define_peephole2.
--- gcc/config/cris/cris.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/cris/cris.md b/gcc/config/cris/cris.md index 6ba3772..472aec7 100644 --- a/gcc/config/cris/cris.md +++ b/gcc/config/cris/cris.md @@ -5034,7 +5034,7 @@ (define_peephole2 ; andqu (casesi+46) [(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])) -- 1.9.3