ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
authorUros Bizjak <ubizjak@gmail.com>
Tue, 7 Apr 2009 16:19:02 +0000 (09:19 -0700)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 7 Apr 2009 16:19:02 +0000 (09:19 -0700)
2009-04-07  Uros Bizjak  <ubizjak@gmail.com>

* 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

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 9d9e83e7af2a4e87eefecbd48eea69a75091bc29..e52e732b9af386b8f4fe7606745f7d177965a49a 100644 (file)
@@ -1,3 +1,9 @@
+2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
+
+       * 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  <mjambor@suse.cz>
 
        * tree-ssa-alias.c (refs_may_alias_p_1): Check for
 
 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
 
-        * 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  <bonzini@gnu.org>
 
-        * 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  <bonzini@gnu.org>
 
-        * 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  <ams@codesourcery.com>
 
 
 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
-        PR target/27237
+       PR target/27237
        * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
        
 2009-03-31  Richard Guenther  <rguenther@suse.de>
 
 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
 
-        * 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  <bonzini@gnu.org>
 
 
 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
 
-        * 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  <bonzini@gnu.org>
 
index 14cf42585b7a72760f359195cf9e56228f166209..66ef5a84e07edd929a97596334acdf738441a5b3 100644 (file)
@@ -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;