* config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ. (ix86_init_builtins): Add built-in function __builtin_huge_valq. (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ. * doc/extend.texi (X86 Built-in Functions): Add index entries for __builtin_infq and __builtin_huge_valq. From-SVN: r145212
This commit is contained in:
parent
33abc84546
commit
593812b61c
3 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2009-03-29 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
* config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
|
||||
(ix86_init_builtins): Add built-in function __builtin_huge_valq.
|
||||
(ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
|
||||
* doc/extend.texi (X86 Built-in Functions): Add index entries for
|
||||
__builtin_infq and __builtin_huge_valq.
|
||||
|
||||
2009-03-28 Anatoly Sokolov <aesok@post.ru>
|
||||
|
||||
* config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
|
||||
|
|
|
@ -20225,6 +20225,7 @@ enum ix86_builtins
|
|||
|
||||
/* TFmode support builtins. */
|
||||
IX86_BUILTIN_INFQ,
|
||||
IX86_BUILTIN_HUGE_VALQ,
|
||||
IX86_BUILTIN_FABSQ,
|
||||
IX86_BUILTIN_COPYSIGNQ,
|
||||
|
||||
|
@ -23393,6 +23394,11 @@ ix86_init_builtins (void)
|
|||
NULL, NULL_TREE);
|
||||
ix86_builtins[(int) IX86_BUILTIN_INFQ] = decl;
|
||||
|
||||
decl = add_builtin_function ("__builtin_huge_valq", ftype,
|
||||
IX86_BUILTIN_HUGE_VALQ, BUILT_IN_MD,
|
||||
NULL, NULL_TREE);
|
||||
ix86_builtins[(int) IX86_BUILTIN_HUGE_VALQ] = decl;
|
||||
|
||||
/* We will expand them to normal call if SSE2 isn't available since
|
||||
they are used by libgcc. */
|
||||
ftype = build_function_type_list (float128_type_node,
|
||||
|
@ -24848,6 +24854,7 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
|
|||
return ix86_expand_vec_set_builtin (exp);
|
||||
|
||||
case IX86_BUILTIN_INFQ:
|
||||
case IX86_BUILTIN_HUGE_VALQ:
|
||||
{
|
||||
REAL_VALUE_TYPE inf;
|
||||
rtx tmp;
|
||||
|
|
|
@ -7780,6 +7780,11 @@ The following floating point built-in functions are made available in the
|
|||
@table @code
|
||||
@item __float128 __builtin_infq (void)
|
||||
Similar to @code{__builtin_inf}, except the return type is @code{__float128}.
|
||||
@findex __builtin_infq
|
||||
|
||||
@item __float128 __builtin_huge_valq (void)
|
||||
Similar to @code{__builtin_huge_val}, except the return type is @code{__float128}.
|
||||
@findex __builtin_huge_valq
|
||||
@end table
|
||||
|
||||
The following built-in functions are made available by @option{-mmmx}.
|
||||
|
|
Loading…
Add table
Reference in a new issue