projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b908f12
)
Eliminate unneeded test.
author
Michael Eager
<eager@gcc.gnu.org>
Fri, 10 Mar 2017 00:48:51 +0000
(
00:48
+0000)
committer
Michael Eager
<eager@gcc.gnu.org>
Fri, 10 Mar 2017 00:48:51 +0000
(
00:48
+0000)
From-SVN: r246020
gcc/config/microblaze/microblaze.c
patch
|
blob
|
history
diff --git
a/gcc/config/microblaze/microblaze.c
b/gcc/config/microblaze/microblaze.c
index fb115e69e766d4cd0267a0820bcd444eebc4488b..d0f86fd46071bfb58786a90453ec838d4aca740c 100644
(file)
--- a/
gcc/config/microblaze/microblaze.c
+++ b/
gcc/config/microblaze/microblaze.c
@@
-3323,7
+3323,7
@@
microblaze_expand_shift (rtx operands[])
|| (GET_CODE (operands[1]) == SUBREG));
/* Shift by zero -- copy regs if necessary. */
- if (
CONST_INT_P (operands[2]) && (operands[2] == const0_rtx)
+ if (
operands[2] == const0_rtx
&& !rtx_equal_p (operands[0], operands[1]))
{
emit_insn (gen_movsi (operands[0], operands[1]));