aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2004-07-15 21:16:21 +0000
committerMatthias Klose <doko@gcc.gnu.org>2004-07-15 21:16:21 +0000
commit8abcb0f705f34e873fe2c2301f643af2b7f7f176 (patch)
tree908f711e4d59ea45cf440c4673541dbb8d3f2911 /gcc/combine.c
parent7a1bf2f971ea51d117c242f635f6b3ac83ac77c5 (diff)
downloadgcc-8abcb0f705f34e873fe2c2301f643af2b7f7f176.zip
gcc-8abcb0f705f34e873fe2c2301f643af2b7f7f176.tar.gz
gcc-8abcb0f705f34e873fe2c2301f643af2b7f7f176.tar.bz2
combine.c (simplify_set): match the mode of the constant 0 with the tested operand to match the compare...
2004-07-15 Roman Zippel <zippel@linux-m68k.org> * combine.c (simplify_set): match the mode of the constant 0 with the tested operand to match the compare behaviour and the simplify_relational_operation() expectation. From-SVN: r84779
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 1bdceb5..0b4b4ca 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -5107,7 +5107,7 @@ simplify_set (rtx x)
if (GET_CODE (src) == COMPARE)
op0 = XEXP (src, 0), op1 = XEXP (src, 1);
else
- op0 = src, op1 = const0_rtx;
+ op0 = src, op1 = CONST0_RTX (GET_MODE (src));
tmp = simplify_relational_operation (old_code, compare_mode, VOIDmode,
op0, op1);