From 7ff4e41a19132c87c9ef6f0bd2ca809a6c2172a8 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 22 Aug 2016 12:48:14 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 9 +++++++++ .../gcc.dg/torture/arm-fp16-int-convert-alt.c | 11 ++++++----- .../gcc.dg/torture/arm-fp16-int-convert-ieee.c | 11 ++++++----- 3 files changed, 21 insertions(+), 10 deletions(-) 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); } -- 2.30.2