aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2004-05-01 09:36:55 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2004-05-01 09:36:55 +0000
commit77306e3e64b98c52415f407f0451d15e429a2a30 (patch)
treea9f7ef4139a86b3819cd18ae3782f6420e5e917e /gcc
parent3bf05748728b93e0241a62bb0926ec12a58f01f6 (diff)
downloadgcc-77306e3e64b98c52415f407f0451d15e429a2a30.zip
gcc-77306e3e64b98c52415f407f0451d15e429a2a30.tar.gz
gcc-77306e3e64b98c52415f407f0451d15e429a2a30.tar.bz2
simplify-rtx.c (simplify_ternary_operation): When converting an IF_THEN_ELSE to a relational op, return correct mode.
2004-05-01 Paolo Bonzini <bonzini@gnu.org> * simplify-rtx.c (simplify_ternary_operation): When converting an IF_THEN_ELSE to a relational op, return correct mode. From-SVN: r81383
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/simplify-rtx.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f4e6cb7..445e736 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-01 Paolo Bonzini <bonzini@gnu.org>
+
+ * simplify-rtx.c (simplify_ternary_operation): When
+ converting an IF_THEN_ELSE to a relational op, return
+ correct mode.
+
2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c (fold_builtin_round): Fix comment typo.
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 5895bb9..74377b6 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -3123,7 +3123,7 @@ simplify_ternary_operation (enum rtx_code code, enum machine_mode mode,
else
break;
- return simplify_gen_relational (code, op0_mode, cmp_mode,
+ return simplify_gen_relational (code, mode, cmp_mode,
XEXP (op0, 0), XEXP (op0, 1));
}