Skip to content

Commit

Permalink
* sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
Browse files Browse the repository at this point in the history
exception in addition to inexact when asked to raise only FE_INEXACT.
	* sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
	exception in addition to inexact when asked to raise only FE_INEXACT.
  • Loading branch information
Jakub Jelinek committed May 10, 2007
1 parent cf6b098 commit c1dfd7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2007-05-09 Jakub Jelinek <jakub@redhat.com>

* sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
exception in addition to inexact when asked to raise only FE_INEXACT.

[BZ #3427]
* sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
in *envp.
Expand Down
5 changes: 3 additions & 2 deletions sysdeps/ia64/fpu/fraiseexcpt.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Raise given exceptions.
Copyright (C) 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 2000, 2001, 2002, 2007
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jes Sorensen <Jes.Sorensen@cern.ch>, 2000.
Expand Down Expand Up @@ -70,7 +71,7 @@ feraiseexcept (int excepts)
if (FE_INEXACT & excepts)
{
dummy = DBL_MAX;
__asm__ __volatile__ ("fadd.d.s0 %0=%1,f1" : "=f" (dummy) : "0" (dummy));
__asm__ __volatile__ ("fsub.d.s0 %0=%1,f1" : "=f" (dummy) : "0" (dummy));
}

/* Success. */
Expand Down

0 comments on commit c1dfd7e

Please sign in to comment.