From 77306e3e64b98c52415f407f0451d15e429a2a30 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sat, 1 May 2004 09:36:55 +0000 Subject: [PATCH] simplify-rtx.c (simplify_ternary_operation): When converting an IF_THEN_ELSE to a relational op, return correct mode. 2004-05-01 Paolo Bonzini * simplify-rtx.c (simplify_ternary_operation): When converting an IF_THEN_ELSE to a relational op, return correct mode. From-SVN: r81383 --- gcc/ChangeLog | 6 ++++++ gcc/simplify-rtx.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4e6cb7fb0c..445e736b053 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-05-01 Paolo Bonzini + + * 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 * builtins.c (fold_builtin_round): Fix comment typo. diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 5895bb90686..74377b64eb6 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)); } -- 2.30.2