aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-11-24 02:31:38 +0000
committerBen Elliston <bje@gcc.gnu.org>2005-11-24 13:31:38 +1100
commit94044657e9a3b514a5b38e71156290a4c7d2a474 (patch)
treed26591b1d080964cbd459c24bfefe844be5c0c41 /gcc/optabs.c
parentff6b6641506a9aeab5dbb01a2ebd214ff3a942ba (diff)
downloadgcc-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
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c5
1 files changed, 1 insertions, 4 deletions
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;