diff options
| author | doko <doko@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-15 21:16:21 +0000 |
|---|---|---|
| committer | doko <doko@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-15 21:16:21 +0000 |
| commit | 04d809cb13800a6bce34acc7d133f3edf80679d9 (patch) | |
| tree | 908f711e4d59ea45cf440c4673541dbb8d3f2911 | |
| parent | 247b9046fce023ab7902721c63a7e12729133d25 (diff) | |
| download | ppe42-gcc-04d809cb13800a6bce34acc7d133f3edf80679d9.tar.gz ppe42-gcc-04d809cb13800a6bce34acc7d133f3edf80679d9.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84779 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/combine.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3dd6fd36764..0db81d0e9f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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. + 2004-07-15 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.md ("bunordered"): Disable for e500. diff --git a/gcc/combine.c b/gcc/combine.c index 1bdceb5ef9c..0b4b4ca5a64 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); |

