https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124932
Bug ID: 124932
Summary: `cexp` is not vectorized
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: queuesevenm at disroot dot org
Target Milestone: ---
Hello, I recently noticed some of my code was not being vectorized when
compiled with gcc. I realized that if I switched out the cexp function for the
equivalent expression using the trigonometric and real exponential functions,
the code would be vectorized.
Here is the example with cexp: https://godbolt.org/z/EWGToKEo1
And with the equivalent expression: https://godbolt.org/z/a5cGfaqKT