diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2017-02-24 23:34:37 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2017-02-24 23:34:37 +0100 |
commit | da3243b2b6c29514a0550cfcd4055fdf13c448f3 (patch) | |
tree | 2c39d59de34ed0ce09a4b6ca16a8f9bde458297f /gcc | |
parent | 4bc2b7860f5a381d74a9bc36c04c5e0ddbf2374d (diff) | |
download | gcc-da3243b2b6c29514a0550cfcd4055fdf13c448f3.zip gcc-da3243b2b6c29514a0550cfcd4055fdf13c448f3.tar.gz gcc-da3243b2b6c29514a0550cfcd4055fdf13c448f3.tar.bz2 |
cris: Fix for RTL checking
* config/cris/cris.md: Use correct operand in a define_peephole2.
From-SVN: r245723
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/cris/cris.md | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 12d4a72..0405ddf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org> + * config/cris/cris.md: Use correct operand in a define_peephole2. + +2017-02-24 Segher Boessenkool <segher@kernel.crashing.org> + * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL. 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org> diff --git a/gcc/config/cris/cris.md b/gcc/config/cris/cris.md index cea11eb..856022e 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])) |