simplify-rtx.c (simplify_ternary_operation): When converting an IF_THEN_ELSE to a...
authorPaolo Bonzini <bonzini@gnu.org>
Sat, 1 May 2004 09:36:55 +0000 (09:36 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Sat, 1 May 2004 09:36:55 +0000 (09:36 +0000)
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

gcc/ChangeLog
gcc/simplify-rtx.c

index f4e6cb7fb0c6f46570ea7d59a38ec2fe6275fa17..445e736b053fd32ef7228c0bd2bf7b98db61e28e 100644 (file)
@@ -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.
index 5895bb9068678ddc14b31acd41b0048bd563a546..74377b64eb6638a3ee03c403e28ced6851c89e9d 100644 (file)
@@ -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));
            }