From 4e9b68335922242b2a234661e5919790dfd66bca Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Tue, 14 Apr 2015 09:22:28 +0000 Subject: [PATCH] Avoid finite in gcc.target/i386/avx512dq-vfpclasspd-2.c etc. * gcc.target/i386/avx512dq-vfpclasspd-2.c (check_fp_class_dp): Use __builtin_finite instead of finite. * gcc.target/i386/avx512dq-vfpclassps-2.c (check_fp_class_sp): Likewise. From-SVN: r222079 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/i386/avx512dq-vfpclasspd-2.c | 2 +- gcc/testsuite/gcc.target/i386/avx512dq-vfpclassps-2.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aec780ba132..37285f9c9fc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-04-14 Rainer Orth + + * gcc.target/i386/avx512dq-vfpclasspd-2.c (check_fp_class_dp): Use + __builtin_finite instead of finite. + * gcc.target/i386/avx512dq-vfpclassps-2.c (check_fp_class_sp): + Likewise. + 2015-04-14 Marc Glisse PR tree-optimization/63387 diff --git a/gcc/testsuite/gcc.target/i386/avx512dq-vfpclasspd-2.c b/gcc/testsuite/gcc.target/i386/avx512dq-vfpclasspd-2.c index 0d648f5dc2e..d6dfad7c971 100644 --- a/gcc/testsuite/gcc.target/i386/avx512dq-vfpclasspd-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512dq-vfpclasspd-2.c @@ -21,7 +21,7 @@ int check_fp_class_dp (double src, int imm) int PInf_res = (isinf (src) == 1); int NInf_res = (isinf (src) == -1); int Denorm_res = (fpclassify (src) == FP_SUBNORMAL); - int FinNeg_res = finite (src) && (src < 0); + int FinNeg_res = __builtin_finite (src) && (src < 0); int result = (((imm & 1) && qNaN_res) || (((imm >> 1) & 1) && Pzero_res) diff --git a/gcc/testsuite/gcc.target/i386/avx512dq-vfpclassps-2.c b/gcc/testsuite/gcc.target/i386/avx512dq-vfpclassps-2.c index a6b9a291381..9401f04137a 100644 --- a/gcc/testsuite/gcc.target/i386/avx512dq-vfpclassps-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512dq-vfpclassps-2.c @@ -21,7 +21,7 @@ int check_fp_class_sp (float src, int imm) int PInf_res = (isinf (src) == 1); int NInf_res = (isinf (src) == -1); int Denorm_res = (fpclassify (src) == FP_SUBNORMAL); - int FinNeg_res = finite (src) && (src < 0); + int FinNeg_res = __builtin_finite (src) && (src < 0); int result = (((imm & 1) && qNaN_res) || (((imm >> 1) & 1) && Pzero_res) -- 2.30.2