diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2014-04-22 22:14:42 -0400 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2014-04-22 22:14:42 -0400 |
commit | aa22156410cb3056d4a56815173886f6a91b8e92 (patch) | |
tree | 94b327d57a1e3ba50f9368da22ed7e1625859ed1 /gcc/doc/invoke.texi | |
parent | 5f056aaaf595a8919b9365324d6807779b768c78 (diff) | |
download | gcc-aa22156410cb3056d4a56815173886f6a91b8e92.zip gcc-aa22156410cb3056d4a56815173886f6a91b8e92.tar.gz gcc-aa22156410cb3056d4a56815173886f6a91b8e92.tar.bz2 |
nios2.md (UNSPEC_ROUND): New.
2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* config/nios2/nios2.md (UNSPEC_ROUND): New.
(lroundsfsi2): New.
* config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
* config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
* config/nios2/nios2.c (N2F_NO_ERRNO): Define.
(nios2_fpu_insn): Add entry for round.
(N2FPU_NO_ERRNO_P): Define.
(nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
flag_errno_math.
* doc/invoke.texi (Nios II Options): Document -mcustom-round.
gcc/testsuite/
* gcc.target/nios2/custom-fp-conversion.c: Adjust to test that
lroundf generates custom round instruction, too.
From-SVN: r209670
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 8004da8..7d03909 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -18485,6 +18485,12 @@ Conversion from double precision to single precision. Conversion from floating point to signed or unsigned integer types, with truncation towards zero. +@item @samp{round} +Conversion from single-precision floating point to signed integer, +rounding to the nearest integer and ties away from zero. +This corresponds to the @code{__builtin_lroundf} function when +@option{-fno-math-errno} is used. + @item @samp{floatis}, @samp{floatus}, @samp{floatid}, @samp{floatud} Conversion from signed or unsigned integer types to floating-point types. |