https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122724
Bug ID: 122724
Summary: [13 Regression] ICE due to incorrect COND_NEG with VCE
folding
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: aarch64
```
_Float16 in[128];
short out[128];
void foo(void) {
for (int i = 0; i < 128; i++) {
_Float16 x = in[i];
_Float16 y = x ? -x : 0.0;
short dst;
__builtin_memcpy (&dst, &y, sizeof(dst));
out[i] = dst;
}
}
```
Forwarded from PR 112469.
`-O2 -march=armv8.2-a+sve`