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