1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { dg-do compile } */ /* { dg-options "-O1" } */ #include <stdint.h> double f1 (uint16_t x) { return (double)(float)x; } float f2 (uint16_t x) { return (float)(double)x; } /* { dg-final { scan-assembler-not "fcvt" } } */