https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126404
Bug ID: 126404
Summary: [16/17 Regression] ICE at -O2/3 on aarch64 during
GIMPLE pass: vect
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: xxs_chy at outlook dot com
Target Milestone: ---
Target: aarch64
Reproducer: https://godbolt.org/z/K7oP4M99P
Testcase:
#include <stdint.h>
int16_t g7, g15;
void f13f14()
{
int32_t v3;
_Bool ob13;
int16_t ov14;
v3 = 6;
lbl_br1:
ob13 = __builtin_add_overflow(2, g7, &ov14);
g7 = 0;
v3 = __builtin_ctz(v3);
if (ob13) goto lbl_br1;
g15 = __builtin_clz(v3);
}
Dump in compiler explorer:
during GIMPLE pass: vect
<source>: In function 'f13f14':
<source>:3:6: internal compiler error: Segmentation fault
3 | void f13f14()
| ^~~~~~