From 9b92bf04bf7f6ccb1a74fbfe7e9866b1cf4da484 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 21 Nov 2005 21:29:23 +0000 Subject: [PATCH] cse.c (fold_rtx): Typo fix. * cse.c (fold_rtx): Typo fix. (find_comparison_args): Pass the mode of arg1, not arg1 itself. From-SVN: r107326 --- gcc/ChangeLog | 5 +++++ gcc/cse.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7bb01755113..8146c452331 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-11-22 Ben Elliston + + * cse.c (fold_rtx): Typo fix. + (find_comparison_args): Pass the mode of arg1, not arg1 itself. + 2005-11-21 Richard Henderson * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h, diff --git a/gcc/cse.c b/gcc/cse.c index 8ec610f4825..284f3fd5bea 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -3088,7 +3088,7 @@ find_comparison_args (enum rtx_code code, rtx *parg1, rtx *parg2, || (GET_MODE_CLASS (GET_MODE (arg1)) == MODE_INT && code == LT && STORE_FLAG_VALUE == -1) #ifdef FLOAT_STORE_FLAG_VALUE - || (SCALAR_FLOAT_MODE_P (arg1) + || (SCALAR_FLOAT_MODE_P (GET_MODE (arg1)) && (fsfv = FLOAT_STORE_FLAG_VALUE (GET_MODE (arg1)), REAL_VALUE_NEGATIVE (fsfv))) #endif @@ -3098,7 +3098,7 @@ find_comparison_args (enum rtx_code code, rtx *parg1, rtx *parg2, || (GET_MODE_CLASS (GET_MODE (arg1)) == MODE_INT && code == GE && STORE_FLAG_VALUE == -1) #ifdef FLOAT_STORE_FLAG_VALUE - || (SCALAR_FLOAT_MODE_P (arg1) + || (SCALAR_FLOAT_MODE_P (GET_MODE (arg1)) && (fsfv = FLOAT_STORE_FLAG_VALUE (GET_MODE (arg1)), REAL_VALUE_NEGATIVE (fsfv))) #endif @@ -3946,7 +3946,7 @@ fold_rtx (rtx x, rtx insn) enum machine_mode mode_arg1; #ifdef FLOAT_STORE_FLAG_VALUE - if (SCALAR_FLOAT_MODE (mode)) + if (SCALAR_FLOAT_MODE_P (mode)) { true_rtx = (CONST_DOUBLE_FROM_REAL_VALUE (FLOAT_STORE_FLAG_VALUE (mode), mode));