diff options
author | Ben Elliston <bje@au.ibm.com> | 2005-11-21 21:29:23 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2005-11-22 08:29:23 +1100 |
commit | 9b92bf04bf7f6ccb1a74fbfe7e9866b1cf4da484 (patch) | |
tree | e94d2cd164394ee8e6174754660778e7b6254b17 | |
parent | 10e6657a206fdeb7ac00167d1b40cf58e8f5517b (diff) | |
download | gcc-9b92bf04bf7f6ccb1a74fbfe7e9866b1cf4da484.tar.gz |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <bje@au.ibm.com> + + * cse.c (fold_rtx): Typo fix. + (find_comparison_args): Pass the mode of arg1, not arg1 itself. + 2005-11-21 Richard Henderson <rth@redhat.com> * 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)); |