Bug 32685 - Missed changing of sin into sinf (likewise for cos to cosf)
Summary: Missed changing of sin into sinf (likewise for cos to cosf)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.3.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: missed-optimization
Depends on: 22326
Blocks: spec
  Show dependency treegraph
 
Reported: 2007-07-09 03:25 UTC by Andrew Pinski
Modified: 2014-12-01 05:12 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2007-07-09 09:36:31


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2007-07-09 03:25:59 UTC
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).
Comment 1 Richard Biener 2007-07-09 09:36:31 UTC
Confirmed.
Comment 2 Andrew Pinski 2014-12-01 05:12:23 UTC
This testcase has been fixed so closing as such.