From: Paolo Bonzini Date: Sat, 1 May 2004 09:36:55 +0000 (+0000) Subject: simplify-rtx.c (simplify_ternary_operation): When converting an IF_THEN_ELSE to a... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77306e3e64b98c52415f407f0451d15e429a2a30;p=gcc.git 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 --- 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)); }