diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-07-24 17:28:41 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-07-24 17:28:41 +0000 |
commit | 6cdd383ad344227754c65ef8d731802197890a82 (patch) | |
tree | 528f887d302a83c24849f9d2bb197affe426e5e5 /gcc/dojump.c | |
parent | c808e68a949dc87c27d010746cd08cb316d6c313 (diff) | |
download | ppe42-gcc-6cdd383ad344227754c65ef8d731802197890a82.tar.gz ppe42-gcc-6cdd383ad344227754c65ef8d731802197890a82.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189816 138bc75d-0d04-0410-961f-82ee72b054a4
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 06b8d04437a..24eed63e491 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); |