Commit ae5f0678 by Uros Bizjak

optabs.c (prepare_cmp_insn): Expand comparison of the result of memcmp through…

optabs.c (prepare_cmp_insn): Expand comparison of the result of memcmp through generic comparison expansion code.

	* optabs.c (prepare_cmp_insn): Expand comparison of the result
	of memcmp through generic comparison expansion code.

From-SVN: r191641
parent 840171d2
2012-09-22 Uros Bizjak <ubizjak@gmail.com>
* optabs.c (prepare_cmp_insn): Expand comparison of the result
of memcmp through generic comparison expansion code.
2012-09-21 Jack Howarth <howarth@bromo.med.uc.edu>
PR bootstrap/54642
......@@ -64,8 +69,7 @@
2012-09-20 Martin Jambor <mjambor@suse.cz>
* function.c (push_cfun): Check old current_function_decl matches
old cfun, set new current_function_decl to the decl of the new
cfun.
old cfun, set new current_function_decl to the decl of the new cfun.
(push_struct_function): Likewise.
(pop_cfun): Likewise.
(allocate_struct_function): Move call to
......@@ -128,7 +132,7 @@
2012-09-20 Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
doc/lto.texi: Correct typo.
* doc/lto.texi: Correct typo.
2012-09-19 Dehao Chen <dehao@google.com>
......@@ -316,8 +320,7 @@
(haifa_change_pattern): Call it.
(dep_t heap vecs): Declare.
(INSN_COST): Define earlier.
(next_cycle_replace_deps, next_cycle_apply): New static
variables.
(next_cycle_replace_deps, next_cycle_apply): New static variables.
(apply_replacement): New static function.
(recompute_todo_spec): New argument FOR_BACKTRACK. All callers
changed. Handle DEP_REPLACE deps.
......@@ -366,16 +369,14 @@
* Makefile.in (sched-deps.o): Update dependencies.
* config/c6x/c6x.c (in_hwloop): New static variable.
(c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES.
(hwloop_optimize): Set and clear it around preliminary scheduling
pass.
(hwloop_optimize): Set and clear it around preliminary scheduling pass.
2012-09-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
* config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase
and __builtin_ppc_mftb.
* config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New
function to expand an expression that calls a built-in without
arguments.
* config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function
to expand an expression that calls a built-in without arguments.
(rs6000_expand_builtin): Add __builtin_ppc_get_timebase and
__builtin_ppc_mftb.
(rs6000_init_builtins): Likewise.
......@@ -384,8 +385,8 @@
(rs6000_mftb_<mode>): New pattern.
* doc/extend.texi (PowerPC Built-in Functions): New section.
(PowerPC AltiVec/VSX Built-in Functions):
Move some built-ins unrelated to Altivec/VSX to the new section.
(PowerPC AltiVec/VSX Built-in Functions): Move some built-ins
unrelated to Altivec/VSX to the new section.
2012-09-19 David Edelsohn <dje.gcc@gmail.com>
......@@ -434,8 +435,7 @@
* symtab.c (insert_to_assembler_name_hash): Do not insert
register vars.
(unlink_from_assembler_name_hash): NULL out pointers of unlinked
var.
(unlink_from_assembler_name_hash): NULL out pointers of unlinked var.
(symtab_prevail_in_asm_name_hash): New.
(symtab_initialize_asm_name_hash): Break out from ...
(symtab_node_for_asm): ... here.
......@@ -466,7 +466,8 @@
(lto_symtab_merge_decls_1): Likewise; add debug dumps.
(lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
(lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
(lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans stage.
(lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans
stage.
(lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
* lto-streaer.h (lto_symtab_free): Remove.
* lto-cgraph.c (add_references): Cleanup.
......@@ -526,8 +527,7 @@
2012-09-18 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3):
Delete.
* config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete.
(abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
nabs_nopower): Delete.
(absdi2, absdi2_internal, nabsdi2): Delete.
......@@ -837,8 +837,7 @@
(*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
Remove third alternative.
(*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate
operand 2 instead of operand 1, but put it as first argument
of fma.
operand 2 instead of operand 1, but put it as first argument of fma.
* config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
_mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
of the first.
......@@ -853,11 +852,9 @@
2012-09-14 Richard Guenther <rguenther@suse.de>
* tree-vrp.c (register_new_assert_for): Simplify for backward
walk.
(find_assert_locations_1): Walk the basic-block backwards,
properly add/prune from live. Use live for asserts derived
from stmts.
* tree-vrp.c (register_new_assert_for): Simplify for backward walk.
(find_assert_locations_1): Walk the basic-block backwards, properly
add/prune from live. Use live for asserts derived from stmts.
2012-09-14 Marc Glisse <marc.glisse@inria.fr>
......@@ -883,8 +880,7 @@
(BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
(TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
__MOXIE_BIG_ENDIAN__.
* config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS):
Define.
* config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define.
* config/moxie/moxie.opt: New file.
* doc/invoke.texi (Moxie Options): Add section documenting -mel
and -meb.
......@@ -893,8 +889,7 @@
Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/53210
* doc/invoke.texi ([Winit-self]): Document as enabled by -Wall
in C++.
* doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++.
2012-09-13 Eric Botcazou <ebotcazou@adacore.com>
......
......@@ -4108,10 +4108,11 @@ prepare_cmp_insn (rtx x, rtx y, enum rtx_code comparison, rtx size,
XEXP (x, 0), Pmode,
XEXP (y, 0), Pmode,
size, cmp_mode);
*ptest = gen_rtx_fmt_ee (comparison, VOIDmode, result, const0_rtx);
*pmode = result_mode;
return;
x = result;
y = const0_rtx;
mode = result_mode;
methods = OPTAB_LIB_WIDEN;
unsignedp = false;
}
/* Don't allow operands to the compare to trap, as that can put the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment