annotate gcc/testsuite/gcc.dg/c11-true_min-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do run } */
kono
parents:
diff changeset
2 /* { dg-options "-std=c11" } */
kono
parents:
diff changeset
3 /* { dg-xfail-run-if "PR58757 -mieee is required to compare denormals" { alpha*-*-* } } */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
4 /* { dg-skip-if "No subnormal support" { csky-*-* } { "-mhard-float" } } */
111
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 /* Test that the smallest positive value is not 0. This needs to be true
kono
parents:
diff changeset
7 even when denormals are not supported, so we do not pass any flag
kono
parents:
diff changeset
8 like -mieee. */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 #include <float.h>
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 int main(){
kono
parents:
diff changeset
13 volatile float f = FLT_TRUE_MIN;
kono
parents:
diff changeset
14 volatile double d = DBL_TRUE_MIN;
kono
parents:
diff changeset
15 volatile long double l = LDBL_TRUE_MIN;
kono
parents:
diff changeset
16 if (f == 0 || d == 0 || l == 0)
kono
parents:
diff changeset
17 __builtin_abort ();
kono
parents:
diff changeset
18 return 0;
kono
parents:
diff changeset
19 }