Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/torture/fp-int-convert-float32.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Test floating-point conversions. Standard types and _Float32. */ | |
2 /* { dg-do run } */ | |
3 /* { dg-options "" } */ | |
4 /* { dg-add-options float32 } */ | |
5 /* { dg-require-effective-target float32_runtime } */ | |
6 | |
7 #define __STDC_WANT_IEC_60559_TYPES_EXT__ | |
8 #include <float.h> | |
9 #include "fp-int-convert.h" | |
10 | |
11 int | |
12 main (void) | |
13 { | |
14 TEST_I_F(signed char, unsigned char, _Float32, FLT32_MANT_DIG, FLT32_MAX_EXP); | |
15 TEST_I_F(signed short, unsigned short, _Float32, FLT32_MANT_DIG, FLT32_MAX_EXP); | |
16 TEST_I_F(signed int, unsigned int, _Float32, FLT32_MANT_DIG, FLT32_MAX_EXP); | |
17 TEST_I_F(signed long, unsigned long, _Float32, FLT32_MANT_DIG, FLT32_MAX_EXP); | |
18 TEST_I_F(signed long long, unsigned long long, _Float32, FLT32_MANT_DIG, FLT32_MAX_EXP); | |
19 exit (0); | |
20 } |