From: Joseph Myers Date: Mon, 22 Aug 2016 11:48:14 +0000 (+0100) Subject: Update TEST_I_F calls in ARM fp-int-convert tests. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ff4e41a19132c87c9ef6f0bd2ca809a6c2172a8;p=gcc.git Update TEST_I_F calls in ARM fp-int-convert tests. gcc/testsuite: * gcc.dg/torture/arm-fp16-int-convert-alt.c (FP16_MAX_EXP): New macro. (main): Update calls to TEST_I_F. * gcc.dg/torture/arm-fp16-int-convert-ieee.c (FP16_MAX_EXP): New macro. (main): Update calls to TEST_I_F. From-SVN: r239657 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6d1f7fd703b..142e6d24562 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2016-08-22 Joseph Myers + + * gcc.dg/torture/arm-fp16-int-convert-alt.c (FP16_MAX_EXP): New + macro. + (main): Update calls to TEST_I_F. + * gcc.dg/torture/arm-fp16-int-convert-ieee.c (FP16_MAX_EXP): New + macro. + (main): Update calls to TEST_I_F. + 2016-08-22 Joseph Myers * gcc.dg/torture/fp-int-convert-float128x-timode.c, diff --git a/gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-alt.c b/gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-alt.c index bcd7aeff19e..ba1f9905e21 100644 --- a/gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-alt.c +++ b/gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-alt.c @@ -4,14 +4,15 @@ #include "fp-int-convert.h" #define FP16_MANT_DIG 11 +#define FP16_MAX_EXP 17 int main (void) { - TEST_I_F(signed char, unsigned char, float, FP16_MANT_DIG); - TEST_I_F(signed short, unsigned short, float, FP16_MANT_DIG); - TEST_I_F(signed int, unsigned int, float, FP16_MANT_DIG); - TEST_I_F(signed long, unsigned long, float, FP16_MANT_DIG); - TEST_I_F(signed long long, unsigned long long, float, FP16_MANT_DIG); + TEST_I_F(signed char, unsigned char, float, FP16_MANT_DIG, FP16_MAX_EXP); + TEST_I_F(signed short, unsigned short, float, FP16_MANT_DIG, FP16_MAX_EXP); + TEST_I_F(signed int, unsigned int, float, FP16_MANT_DIG, FP16_MAX_EXP); + TEST_I_F(signed long, unsigned long, float, FP16_MANT_DIG, FP16_MAX_EXP); + TEST_I_F(signed long long, unsigned long long, float, FP16_MANT_DIG, FP16_MAX_EXP); exit (0); } diff --git a/gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-ieee.c b/gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-ieee.c index 1314d4b0e6d..8790bc5f579 100644 --- a/gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-ieee.c +++ b/gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-ieee.c @@ -4,14 +4,15 @@ #include "fp-int-convert.h" #define FP16_MANT_DIG 11 +#define FP16_MAX_EXP 16 int main (void) { - TEST_I_F(signed char, unsigned char, float, FP16_MANT_DIG); - TEST_I_F(signed short, unsigned short, float, FP16_MANT_DIG); - TEST_I_F(signed int, unsigned int, float, FP16_MANT_DIG); - TEST_I_F(signed long, unsigned long, float, FP16_MANT_DIG); - TEST_I_F(signed long long, unsigned long long, float, FP16_MANT_DIG); + TEST_I_F(signed char, unsigned char, float, FP16_MANT_DIG, FP16_MAX_EXP); + TEST_I_F(signed short, unsigned short, float, FP16_MANT_DIG, FP16_MAX_EXP); + TEST_I_F(signed int, unsigned int, float, FP16_MANT_DIG, FP16_MAX_EXP); + TEST_I_F(signed long, unsigned long, float, FP16_MANT_DIG, FP16_MAX_EXP); + TEST_I_F(signed long long, unsigned long long, float, FP16_MANT_DIG, FP16_MAX_EXP); exit (0); }