aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/h8300
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2012-10-04 14:58:30 -0600
committerJeff Law <law@gcc.gnu.org>2012-10-04 14:58:30 -0600
commit358a11bba195af5bdaf0879e9e6a8d2be02fc882 (patch)
treec76c4c54dd4261273323d7515766b0994d8b34c4 /gcc/config/h8300
parent068ef6d10d29be1ef5bee2e91ff3dfec19081a9b (diff)
downloadgcc-358a11bba195af5bdaf0879e9e6a8d2be02fc882.zip
gcc-358a11bba195af5bdaf0879e9e6a8d2be02fc882.tar.gz
gcc-358a11bba195af5bdaf0879e9e6a8d2be02fc882.tar.bz2
re PR target/50356 (Poor if condition in h8300 config code)
* PR target/50356 * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case. From-SVN: r192103
Diffstat (limited to 'gcc/config/h8300')
-rw-r--r--gcc/config/h8300/h8300.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index 38a9228..7ec1326 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -1,6 +1,6 @@
/* Subroutines for insn-output.c for Renesas H8/300.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
Contributed by Steve Chamberlain (sac@cygnus.com),
Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
@@ -1244,7 +1244,7 @@ h8300_rtx_costs (rtx x, int code, int outer_code, int opno ATTRIBUTE_UNUSED,
*total = 0;
return true;
}
- if (-4 <= n || n <= 4)
+ if (-4 <= n && n <= 4)
{
switch ((int) n)
{