Testcase: float _Complex quantum_cexp(float phi) { return __builtin_cos(phi) + 1i * __builtin_sin(phi); }
--- CUT ---- We should able to change cos/sin here into cosf/sinf (and then into cexpfi). This shows up in libquantum (which is part of SPEC 2k6 but the sources I am using to test are the open soruce ones and not the SPEC 2k6 ones). -- Summary: Missed changing of sin into sinf (likewise for cos to cosf) Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32685