This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32685] New: Missed changing of sin into sinf (likewise for cos to cosf)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 03:25:59 -0000
- Subject: [Bug tree-optimization/32685] New: Missed changing of sin into sinf (likewise for cos to cosf)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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