comparison gcc/testsuite/gcc.c-torture/execute/ieee/inf-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
23 abort (); 23 abort ();
24 } 24 }
25 25
26 void testf(float f, float i) 26 void testf(float f, float i)
27 { 27 {
28 #ifndef __SPU__
29 /* The SPU single-precision floating point format does not support Inf. */
30
31 if (f == __builtin_inff()) 28 if (f == __builtin_inff())
32 abort (); 29 abort ();
33 if (f == -__builtin_inff()) 30 if (f == -__builtin_inff())
34 abort (); 31 abort ();
35 if (i == -__builtin_inff()) 32 if (i == -__builtin_inff())
45 abort (); 42 abort ();
46 if (f <= -__builtin_inff()) 43 if (f <= -__builtin_inff())
47 abort (); 44 abort ();
48 if (f < -__builtin_inff()) 45 if (f < -__builtin_inff())
49 abort (); 46 abort ();
50 #endif
51 } 47 }
52 48
53 void testl(long double f, long double i) 49 void testl(long double f, long double i)
54 { 50 {
55 if (f == __builtin_infl()) 51 if (f == __builtin_infl())