|
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
-
- Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.3 or
- any later version published by the Free Software Foundation; with the
- Invariant Sections being "Funding Free Software", the Front-Cover
- Texts being (a) (see below), and with the Back-Cover Texts being (b)
- (see below). A copy of the license is included in the section entitled
- "GNU Free Documentation License".
-
- (a) The FSF's Front-Cover Text is:
-
- A GNU Manual
-
- (b) The FSF's Back-Cover Text is:
-
- You have freedom to copy and modify this GNU Manual, like GNU
- software. Copies published by the Free Software Foundation raise
- funds for GNU development. -->
- <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Basic PowerPC Built-in Functions Available on ISA 2.06 (Using the GNU Compiler Collection (GCC))</title>
-
- <meta name="description" content="Basic PowerPC Built-in Functions Available on ISA 2.06 (Using the GNU Compiler Collection (GCC))">
- <meta name="keywords" content="Basic PowerPC Built-in Functions Available on ISA 2.06 (Using the GNU Compiler Collection (GCC))">
- <meta name="resource-type" content="document">
- <meta name="distribution" content="global">
- <meta name="Generator" content="makeinfo">
- <link href="index.html#Top" rel="start" title="Top">
- <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
- <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
- <link href="Basic-PowerPC-Built_002din-Functions.html#Basic-PowerPC-Built_002din-Functions" rel="up" title="Basic PowerPC Built-in Functions">
- <link href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e07.html#Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e07" rel="next" title="Basic PowerPC Built-in Functions Available on ISA 2.07">
- <link href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e05.html#Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e05" rel="prev" title="Basic PowerPC Built-in Functions Available on ISA 2.05">
- <style type="text/css">
- <!--
- a.summary-letter {text-decoration: none}
- blockquote.indentedblock {margin-right: 0em}
- blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
- blockquote.smallquotation {font-size: smaller}
- div.display {margin-left: 3.2em}
- div.example {margin-left: 3.2em}
- div.lisp {margin-left: 3.2em}
- div.smalldisplay {margin-left: 3.2em}
- div.smallexample {margin-left: 3.2em}
- div.smalllisp {margin-left: 3.2em}
- kbd {font-style: oblique}
- pre.display {font-family: inherit}
- pre.format {font-family: inherit}
- pre.menu-comment {font-family: serif}
- pre.menu-preformatted {font-family: serif}
- pre.smalldisplay {font-family: inherit; font-size: smaller}
- pre.smallexample {font-size: smaller}
- pre.smallformat {font-family: inherit; font-size: smaller}
- pre.smalllisp {font-size: smaller}
- span.nolinebreak {white-space: nowrap}
- span.roman {font-family: initial; font-weight: normal}
- span.sansserif {font-family: sans-serif; font-weight: normal}
- ul.no-bullet {list-style: none}
- -->
- </style>
-
-
- </head>
-
- <body lang="en">
- <a name="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e06"></a>
- <div class="header">
- <p>
- Next: <a href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e07.html#Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e07" accesskey="n" rel="next">Basic PowerPC Built-in Functions Available on ISA 2.07</a>, Previous: <a href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e05.html#Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e05" accesskey="p" rel="prev">Basic PowerPC Built-in Functions Available on ISA 2.05</a>, Up: <a href="Basic-PowerPC-Built_002din-Functions.html#Basic-PowerPC-Built_002din-Functions" accesskey="u" rel="up">Basic PowerPC Built-in Functions</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
- </div>
- <hr>
- <a name="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e06-1"></a>
- <h4 class="subsubsection">6.60.22.3 Basic PowerPC Built-in Functions Available on ISA 2.06</h4>
-
- <p>The basic built-in functions described in this section are
- available on the PowerPC family of processors starting with ISA 2.05
- or later. Unless specific options are explicitly disabled on the
- command line, specifying option <samp>-mcpu=power7</samp> has the effect of
- enabling all the same options as for <samp>-mcpu=power6</samp> in
- addition to the <samp>-maltivec</samp>, <samp>-mpopcntd</samp>, and
- <samp>-mvsx</samp> options.
- </p>
- <p>The following basic built-in functions require <samp>-mpopcntd</samp>:
- </p><div class="smallexample">
- <pre class="smallexample">unsigned int __builtin_addg6s (unsigned int, unsigned int);
- long long __builtin_bpermd (long long, long long);
- unsigned int __builtin_cbcdtd (unsigned int);
- unsigned int __builtin_cdtbcd (unsigned int);
- long long __builtin_divde (long long, long long);
- unsigned long long __builtin_divdeu (unsigned long long, unsigned long long);
- int __builtin_divwe (int, int);
- unsigned int __builtin_divweu (unsigned int, unsigned int);
- vector __int128 __builtin_pack_vector_int128 (long long, long long);
- void __builtin_rs6000_speculation_barrier (void);
- long long __builtin_unpack_vector_int128 (vector __int128, signed char);
- </pre></div>
-
- <p>Of these, the <code>__builtin_divde</code> and <code>__builtin_divdeu</code> functions
- require a 64-bit environment.
- </p>
- <p>The following basic built-in functions, which are also supported on
- x86 targets, require <samp>-mfloat128</samp>.
- </p><div class="smallexample">
- <pre class="smallexample">__float128 __builtin_fabsq (__float128);
- __float128 __builtin_copysignq (__float128, __float128);
- __float128 __builtin_infq (void);
- __float128 __builtin_huge_valq (void);
- __float128 __builtin_nanq (void);
- __float128 __builtin_nansq (void);
-
- __float128 __builtin_sqrtf128 (__float128);
- __float128 __builtin_fmaf128 (__float128, __float128, __float128);
- </pre></div>
-
-
-
-
- </body>
- </html>
|