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