i386-protos.h (ix86_expand_round): Declare.
authorRichard Guenther <rguenther@suse.de>
Sun, 29 Oct 2006 16:33:36 +0000 (16:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 29 Oct 2006 16:33:36 +0000 (16:33 +0000)
commit097f29642281e0efba439b0cd88a507b7c67a88f
treedeaf8102921ac3c5c17504b62a9945375fdef8cd
parentd096ecdd9643db67bf3c17aa3345a15d62a103a6
i386-protos.h (ix86_expand_round): Declare.

2006-10-29  Richard Guenther  <rguenther@suse.de>

* config/i386/i386-protos.h (ix86_expand_round): Declare.
(ix86_expand_rounddf_32): Likewise.
* config/i386/i386.c (ix86_expand_round): New function expanding
round inline for SSE math and -fno-trapping-math and if not
optimizing for size.
(ix86_expand_rounddf_32): Same for DFmode on 32bit archs.
* config/i386/i386.md (rounddf2, roundsf2): New pattern expanding
round via ix86_expand_round.

* gcc.target/i386/math-torture/round.c: New testcase.

From-SVN: r118146
gcc/ChangeLog
gcc/config/i386/i386-protos.h
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/math-torture/round.c [new file with mode: 0644]