diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-08-22 12:48:14 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2016-08-22 12:48:14 +0100 |
commit | 7ff4e41a19132c87c9ef6f0bd2ca809a6c2172a8 (patch) | |
tree | 5bb3b715c52372f2e0b73bd893ced850cb49c5f9 /gcc/testsuite/gcc.dg | |
parent | 845d9d1aa2b01d11e9c7e9949d5d134d760ba1b4 (diff) | |
download | gcc-7ff4e41a19132c87c9ef6f0bd2ca809a6c2172a8.zip gcc-7ff4e41a19132c87c9ef6f0bd2ca809a6c2172a8.tar.gz gcc-7ff4e41a19132c87c9ef6f0bd2ca809a6c2172a8.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-alt.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/arm-fp16-int-convert-ieee.c | 11 |
2 files changed, 12 insertions, 10 deletions
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 bcd7aef..ba1f990 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 1314d4b..8790bc5 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); } |