diff options
author | Ben Elliston <bje@au.ibm.com> | 2005-11-24 02:31:38 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2005-11-24 13:31:38 +1100 |
commit | 94044657e9a3b514a5b38e71156290a4c7d2a474 (patch) | |
tree | d26591b1d080964cbd459c24bfefe844be5c0c41 | |
parent | ff6b6641506a9aeab5dbb01a2ebd214ff3a942ba (diff) | |
download | gcc-94044657e9a3b514a5b38e71156290a4c7d2a474.zip gcc-94044657e9a3b514a5b38e71156290a4c7d2a474.tar.gz gcc-94044657e9a3b514a5b38e71156290a4c7d2a474.tar.bz2 |
optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
* optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
Remove unused `class' variable.
From-SVN: r107449
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/optabs.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd828e7..31d2349 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-11-24 Ben Elliston <bje@au.ibm.com> + + * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P. + Remove unused `class' variable. + 2005-11-23 Mark Mitchell <mark@codesourcery.com> * doc/invoke.texi: For man pages, include gcc-vers.texi. diff --git a/gcc/optabs.c b/gcc/optabs.c index 9b90d47..217fc2b 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3416,9 +3416,6 @@ prepare_cmp_insn (rtx *px, rtx *py, enum rtx_code *pcomparison, rtx size, enum machine_mode mode = *pmode; rtx x = *px, y = *py; int unsignedp = *punsignedp; - enum mode_class class; - - class = GET_MODE_CLASS (mode); /* If we are inside an appropriately-short loop and we are optimizing, force expensive constants into a register. */ @@ -3523,7 +3520,7 @@ prepare_cmp_insn (rtx *px, rtx *py, enum rtx_code *pcomparison, rtx size, /* Handle a lib call just for the mode we are using. */ - if (cmp_optab->handlers[(int) mode].libfunc && class != MODE_FLOAT) + if (cmp_optab->handlers[(int) mode].libfunc && !SCALAR_FLOAT_MODE_P (mode)) { rtx libfunc = cmp_optab->handlers[(int) mode].libfunc; rtx result; |