aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/md.texi
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-10-28 11:30:41 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-10-28 11:30:41 +0000
commit4d81bf84358f0f905b606a5cb27777e614d213e1 (patch)
tree984f65a3da9766999d6ccf8748f98e89fbad2338 /gcc/doc/md.texi
parent6f16dafb641b6c935c94f87c8ceaac9458dadc72 (diff)
downloadgcc-4d81bf84358f0f905b606a5cb27777e614d213e1.zip
gcc-4d81bf84358f0f905b606a5cb27777e614d213e1.tar.gz
gcc-4d81bf84358f0f905b606a5cb27777e614d213e1.tar.bz2
re PR target/28806 (lround is not expanded inline to SSE conversion sequence)
2006-10-28 Richard Guenther <rguenther@suse.de> PR target/28806 * builtins.c (expand_builtin_int_roundingfn_2): Expand BUILT_IN_LROUND and BUILT_IN_LLROUND from here. (expand_builtin): Adjust likewise. * genopinit.c (optabs[]): Add lround optab. * optabs.c (init_optabs): Initialize lround_optab. * optabs.h (enum convert_optab_index): Add COI_lround. (lround_optab): Define. * config/i386/i386-protos.h (ix86_expand_lround): Declare. * config/i386/i386.c (ix86_sse_copysign_to_positive): New static function. (ix86_expand_lround): New function. * config/i386/i386.md (lround<mode>di2, lround<mode>si2): New expanders. * doc/md.texi (lroundMN2): Document. * gcc.target/i386/math-torture/lround.c: New testcase. From-SVN: r118105
Diffstat (limited to 'gcc/doc/md.texi')
-rw-r--r--gcc/doc/md.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index a41391c..7b55db7 100644
--- a/gcc/doc/md.texi
+++ b/gcc/doc/md.texi
@@ -3708,6 +3708,12 @@ Convert operand 1 (valid for floating point mode @var{m}) to fixed
point mode @var{n} as a signed number according to the current
rounding mode and store in operand 0 (which has mode @var{n}).
+@cindex @code{lround@var{m}@var{n}2}
+@item @samp{lround@var{m}2}
+Convert operand 1 (valid for floating point mode @var{m}) to fixed
+point mode @var{n} as a signed number rounding to nearest and away
+from zero and store in operand 0 (which has mode @var{n}).
+
@cindex @code{copysign@var{m}3} instruction pattern
@item @samp{copysign@var{m}3}
Store a value with the magnitude of operand 1 and the sign of operand