diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-04 21:36:08 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-04 21:36:08 +0000 |
commit | c88a6ebd699c1252ed17692583c86add315988e9 (patch) | |
tree | f6324710f59b8320a13b6d0d5d1869cf5e937d30 /gcc/config/gofast.h | |
parent | da26cb3bc1d0dc113b539a2bdbbfc1271e5ae0c2 (diff) | |
download | gcc-c88a6ebd699c1252ed17692583c86add315988e9.tar.gz |
* libfuncs.h
(LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
(LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
(LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
(LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
(LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
(LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
(LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
(eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
(lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
(nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
(lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
(gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
(unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
(gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
(eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
(lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
Delete.
* optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
(OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
(le_optab, unord_optab): New.
* optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
from the code_to_optab table, not a giant switch; use
swap_condition; do widening only if a comparison function that
we can call exists in a wider mode, not if a cmp_optab insn or
libfunc exists in a wider mode; call protect_from_queue
exactly once on each operand.
(init_optabs): Initialize the new optabs, not the deleted libfuncs.
* config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
* config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
Set floating point comparison libfuncs using set_optab_libfunc
on the appropriate optab.
* config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
* config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
selector conditionals.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72101 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/gofast.h')
-rw-r--r-- | gcc/config/gofast.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/config/gofast.h b/gcc/config/gofast.h index 74a22c779b8..3b3efb97b49 100644 --- a/gcc/config/gofast.h +++ b/gcc/config/gofast.h @@ -52,19 +52,19 @@ gofast_maybe_init_libfuncs (void) libfuncs, we use our own functions, since GOFAST doesn't supply them. */ - eqsf2_libfunc = init_one_libfunc ("fpcmp"); - nesf2_libfunc = init_one_libfunc ("fpcmp"); - gtsf2_libfunc = NULL_RTX; - gesf2_libfunc = NULL_RTX; - ltsf2_libfunc = init_one_libfunc ("fpcmp"); - lesf2_libfunc = init_one_libfunc ("fpcmp"); + set_optab_libfunc (eq_optab, SFmode, "fpcmp"); + set_optab_libfunc (ne_optab, SFmode, "fpcmp"); + set_optab_libfunc (gt_optab, SFmode, 0); + set_optab_libfunc (ge_optab, SFmode, 0); + set_optab_libfunc (lt_optab, SFmode, "fpcmp"); + set_optab_libfunc (le_optab, SFmode, "fpcmp"); - eqdf2_libfunc = init_one_libfunc ("dpcmp"); - nedf2_libfunc = init_one_libfunc ("dpcmp"); - gtdf2_libfunc = NULL_RTX; - gedf2_libfunc = NULL_RTX; - ltdf2_libfunc = init_one_libfunc ("dpcmp"); - ledf2_libfunc = init_one_libfunc ("dpcmp"); + set_optab_libfunc (eq_optab, DFmode, "dpcmp"); + set_optab_libfunc (ne_optab, DFmode, "dpcmp"); + set_optab_libfunc (gt_optab, DFmode, 0); + set_optab_libfunc (ge_optab, DFmode, 0); + set_optab_libfunc (lt_optab, DFmode, "dpcmp"); + set_optab_libfunc (le_optab, DFmode, "dpcmp"); extendsfdf2_libfunc = init_one_libfunc ("fptodp"); truncdfsf2_libfunc = init_one_libfunc ("dptofp"); |