summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-22 21:25:52 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-22 21:25:52 +0000
commit0f7f2d2931670050b93cd887a0fe172833bbeaab (patch)
tree3dd89cfabd5441f7ffeed145b70a4f1c61f378f5 /gcc/optabs.c
parentc3c043d7905eab4ae941615341c762444354717c (diff)
downloadgcc-0f7f2d2931670050b93cd887a0fe172833bbeaab.tar.gz
* optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
a mode_class. (prepare_cmp_insn): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107375 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 219998bac87..9b90d4701d0 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -2489,7 +2489,7 @@ expand_unop (enum machine_mode mode, optab unoptab, rtx op0, rtx target,
if (unoptab->code == NEG)
{
/* Try negating floating point values by flipping the sign bit. */
- if (SCALAR_FLOAT_MODE_P (class))
+ if (SCALAR_FLOAT_MODE_P (mode))
{
temp = expand_absneg_bit (NEG, mode, op0, target);
if (temp)
@@ -3552,7 +3552,7 @@ prepare_cmp_insn (rtx *px, rtx *py, enum rtx_code *pcomparison, rtx size,
return;
}
- gcc_assert (SCALAR_FLOAT_MODE_P (class));
+ gcc_assert (SCALAR_FLOAT_MODE_P (mode));
prepare_float_lib_cmp (px, py, pcomparison, pmode, punsignedp);
}