fparith_float_div.c (293B)
1 /* Single-precision FDIV round-trip. volatile int inputs -> float so a real 2 * FDIV (single) is emitted. 84.0f / 2.0f = 42.0f; (int)42.0f == 42. */ 3 int test_main(void) { 4 volatile int ia = 84, ib = 2; 5 float a = (float)ia, b = (float)ib; 6 float r = a / b; 7 return (int)r == 42 ? 42 : 0; 8 }