https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116065
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Component|target |middle-end
Last reconfirmed| |2024-07-24
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
It also happens for aarch64 with:
```
#include <arm_sve.h>
int __attribute__((target ("+sve"), optimize(3)))
bar (void)
{
svfloat32_t xseg;
return svlen_f32(xseg);
}
```
Which makes me think this is not target specific. Same behavior at x86_64
testcase with the optimization levels too.