diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2024-02-11 21:36:56 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2024-02-11 21:38:14 +0000 |
commit | 19a647bd72632dd5829eddd0d29b04be4fcb864f (patch) | |
tree | 935d4e2437e856951a83811f5a9ac70a430b9ce9 /gcc/testsuite/gcc.c-torture | |
parent | bbf05e3753c0fd49f1a3bf23897fa96d052ddae9 (diff) | |
download | gcc-19a647bd72632dd5829eddd0d29b04be4fcb864f.zip gcc-19a647bd72632dd5829eddd0d29b04be4fcb864f.tar.gz gcc-19a647bd72632dd5829eddd0d29b04be4fcb864f.tar.bz2 |
Fix gcc.c-torture/execute/ieee/cdivchkf.c on hpux
2024-02-11 John David Anglin <danglin@gcc.gnu.org>
gcc/testsuite/ChangeLog:
* gcc.c-torture/execute/ieee/cdivchkf.c: Use ilogb and
__builtin_fmax instead of ilogbf and __builtin_fmaxf.
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c b/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c index adf1ed9..86ef69f 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c @@ -8,7 +8,7 @@ extern void abort (void); extern void exit (int); -extern int ilogbf (float); +extern int ilogb (double); int match (float _Complex, float _Complex); #define SMALL FLT_MIN @@ -22,7 +22,8 @@ int match (float _Complex, float _Complex); int match (float _Complex c, float _Complex z) { float rz, iz, rc, ic; - float rerr, ierr, rmax; + float rerr, ierr; + double rmax; int biterr; rz = __real__ z; iz = __imag__ z; @@ -54,11 +55,11 @@ int match (float _Complex c, float _Complex z) { ierr = __builtin_fabsf (iz - ic) / SMALL; } - rmax = __builtin_fmaxf(rerr, ierr); + rmax = __builtin_fmax (rerr, ierr); biterr = 0; if ( rmax != 0.0) { - biterr = ilogbf (rmax) + MAXBIT + 1; + biterr = ilogb (rmax) + MAXBIT + 1; } if (biterr >= ERRLIM) |