diff options
author | Richard Henderson <rth@redhat.com> | 2012-07-24 10:28:41 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2012-07-24 10:28:41 -0700 |
commit | 2225b9f2982775c7d89fcd7d04adbe4722ba59c3 (patch) | |
tree | 528f887d302a83c24849f9d2bb197affe426e5e5 /gcc/dojump.c | |
parent | 0c471ab87bdb5fc3ff87560f64f78375ae6d386e (diff) | |
download | gcc-2225b9f2982775c7d89fcd7d04adbe4722ba59c3.zip gcc-2225b9f2982775c7d89fcd7d04adbe4722ba59c3.tar.gz gcc-2225b9f2982775c7d89fcd7d04adbe4722ba59c3.tar.bz2 |
Introduce and use unknown_optab
Prep for a later patch where this becomes an enum value.
* optabs.h (unknown_optab): New.
* builtins.c (interclass_mathfn_icode): Use it.
* dojump.c (do_compare_rtx_and_jump): Likewise.
* optabs.c (optab_for_tree_code, expand_binop): Likewise.
* tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
(expand_vector_operations_1): Likewise.
* tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
* tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
From-SVN: r189816
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r-- | gcc/dojump.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index 06b8d04..24eed63 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -1028,19 +1028,16 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp, op0 = op1; op1 = tmp; } - else if (SCALAR_FLOAT_MODE_P (mode) && ! can_compare_p (code, mode, ccp_jump) - - /* Never split ORDERED and UNORDERED. These must be implemented. */ + /* Never split ORDERED and UNORDERED. + These must be implemented. */ && (code != ORDERED && code != UNORDERED) - - /* Split a floating-point comparison if we can jump on other - conditions... */ + /* Split a floating-point comparison if + we can jump on other conditions... */ && (have_insn_for (COMPARE, mode) - /* ... or if there is no libcall for it. */ - || code_to_optab[code] == NULL)) + || code_to_optab[code] == unknown_optab)) { enum rtx_code first_code; bool and_them = split_comparison (code, mode, &first_code, &code); |