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
This commit is contained in:
Ben Elliston 2005-11-21 21:29:23 +00:00 committed by Ben Elliston
parent 10e6657a20
commit 9b92bf04bf
2 changed files with 8 additions and 3 deletions

View File

@ -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,

View File

@ -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));