diff options
author | Richard Guenther <rguenther@suse.de> | 2007-08-22 11:43:32 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-08-22 11:43:32 +0000 |
commit | 968fc3b64fd72e5ebab888ca442a007efc1dc1b4 (patch) | |
tree | f54588d06d55df4ab4c422240ba545ab8e292eed /gcc/testsuite | |
parent | 3fe42b898a374eeef732567f0b50168a4a1e3ccc (diff) | |
download | gcc-968fc3b64fd72e5ebab888ca442a007efc1dc1b4.zip gcc-968fc3b64fd72e5ebab888ca442a007efc1dc1b4.tar.gz gcc-968fc3b64fd72e5ebab888ca442a007efc1dc1b4.tar.bz2 |
re PR middle-end/33007 (builtin lround doesn't work)
2007-08-22 Richard Guenther <rguenther@suse.de>
PR middle-end/33007
* builtins.c (expand_builtin_int_roundingfn): Replace call
argument wrapped with SAVE_EXPR directly.
(expand_builtin_int_roundingfn_2): Likewise.
* gcc.dg/pr33007.c: New testcase.
From-SVN: r127701
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr33007.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c77dec9..189097d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-08-22 Richard Guenther <rguenther@suse.de> + + PR middle-end/33007 + * gcc.dg/pr33007.c: New testcase. + 2007-08-22 Richard Sandiford <richard@codesourcery.com> * gcc.c-torture/execute/strcmp-1.x: Delete. diff --git a/gcc/testsuite/gcc.dg/pr33007.c b/gcc/testsuite/gcc.dg/pr33007.c new file mode 100644 index 0000000..b1fc428 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr33007.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O -ffast-math -ftrapping-math" } */ + +long +foo (int i) +{ + float x; + x = i; + return __builtin_lroundf (x); +} |