2 cmpsf-1.c from the execute part of the gcc torture tests.
17 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
19 feq (float x
, float y
)
28 fne (float x
, float y
)
37 flt (float x
, float y
)
46 fge (float x
, float y
)
55 fgt (float x
, float y
)
64 fle (float x
, float y
)
88 int correct_results
[] =
158 testTortureExecute (void)
160 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
161 const int *res
= correct_results
;
164 for (i
= 0; i
< 8; i
++)
166 float arg0
= args
[i
];
167 for (j
= 0; j
< 8; j
++)
169 float arg1
= args
[j
];
171 ASSERT(feq (arg0
, arg1
) == *res
++);
172 ASSERT(fne (arg0
, arg1
) == *res
++);
173 ASSERT(flt (arg0
, arg1
) == *res
++);
174 ASSERT(fge (arg0
, arg1
) == *res
++);
175 ASSERT(fgt (arg0
, arg1
) == *res
++);
176 ASSERT(fle (arg0
, arg1
) == *res
++);