From: Uros Bizjak Date: Tue, 7 Apr 2009 16:19:02 +0000 (-0700) Subject: ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcb82ab00fc48f48f59067ba7a94e9e331a74462;p=gcc.git ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ. 2009-04-07 Uros Bizjak * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ. (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ. (ia64_expand_builtin): Likewise. From-SVN: r145690 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9d9e83e7af2..e52e732b9af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-04-07 Uros Bizjak + + * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ. + (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ. + (ia64_expand_builtin): Likewise. + 2009-04-07 Martin Jambor * tree-ssa-alias.c (refs_may_alias_p_1): Check for @@ -19,23 +25,23 @@ 2009-04-07 Paolo Bonzini - * optabs.c (can_compare_p): Test the predicate of a - cbranch and cstore pattern. + * optabs.c (can_compare_p): Test the predicate of a + cbranch and cstore pattern. 2009-04-07 Paolo Bonzini - * expr.c (convert_move): Use emit_store_flag instead of - "emulating" it. + * expr.c (convert_move): Use emit_store_flag instead of + "emulating" it. 2009-04-07 Paolo Bonzini - * config/i386/i386.c (ix86_compare_emitted): Remove. - (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC - ix86_compare_op0 like ix86_compare_emitted used to be handled. - * config/i386/i386.h (ix86_compare_emitted): Remove. - * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0 - instead of ix86_compare_emitted. - * config/i386/sync.md (sync_compare_and_swap_cc): Likewise. + * config/i386/i386.c (ix86_compare_emitted): Remove. + (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC + ix86_compare_op0 like ix86_compare_emitted used to be handled. + * config/i386/i386.h (ix86_compare_emitted): Remove. + * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0 + instead of ix86_compare_emitted. + * config/i386/sync.md (sync_compare_and_swap_cc): Likewise. 2009-04-07 Andrew Stubbs @@ -1450,7 +1456,7 @@ 2009-03-31 Ramana Radhakrishnan - PR target/27237 + PR target/27237 * doc/invoke.texi (ARM Options): Update documentation for -mthumb. 2009-03-31 Richard Guenther @@ -1652,8 +1658,8 @@ 2009-03-30 Paolo Bonzini - * combine.c (simplify_comparison): Use have_insn_for. - * dojump.c (do_jump): Likewise. + * combine.c (simplify_comparison): Use have_insn_for. + * dojump.c (do_jump): Likewise. 2009-03-30 Paolo Bonzini @@ -1680,10 +1686,10 @@ 2009-03-30 Paolo Bonzini - * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): - Provide/destroy PROP_cfglayout respectively. - * gcse.c (pass_jump_bypass, pass_gcse): Require it. - * tree-pass.h (PROP_cfglayout): New. + * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): + Provide/destroy PROP_cfglayout respectively. + * gcse.c (pass_jump_bypass, pass_gcse): Require it. + * tree-pass.h (PROP_cfglayout): New. 2009-03-30 Paolo Bonzini diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 14cf42585b7..66ef5a84e07 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -9771,7 +9771,8 @@ enum ia64_builtins IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ, IA64_BUILTIN_FLUSHRS, - IA64_BUILTIN_INFQ + IA64_BUILTIN_INFQ, + IA64_BUILTIN_HUGE_VALQ }; void @@ -9808,6 +9809,10 @@ ia64_init_builtins (void) IA64_BUILTIN_INFQ, BUILT_IN_MD, NULL, NULL_TREE); + add_builtin_function ("__builtin_huge_valq", ftype, + IA64_BUILTIN_HUGE_VALQ, BUILT_IN_MD, + NULL, NULL_TREE); + ftype = build_function_type_list (float128_type, float128_type, NULL_TREE); @@ -9882,6 +9887,7 @@ ia64_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, return const0_rtx; case IA64_BUILTIN_INFQ: + case IA64_BUILTIN_HUGE_VALQ: { REAL_VALUE_TYPE inf; rtx tmp;