https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125786
Bug ID: 125786
Summary: [11-17 Regression] wrong code (SIGFPE) at -O2 on
x86_64-linux-gnu
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: ---
Reproducer: https://godbolt.org/z/3c3W7rG76
Testcase:
#include <stdint.h>
typedef int64_t v8i64 __attribute__((vector_size(64)));
v8i64 g6, g27;
_Bool main_c14;
int main()
{
if (main_c14) goto lbl_br43;
lbl_bf7:
g6 = 0 <= g27;
g27 = g27 <= g27;
g27 = g6 > g27;
lbl_br43:
g6 = g6 | g27;
if (main_c14) goto lbl_bf7;
g6 = g6 * g27 == 0;
g27 = g27 % g6;
}
This testcase terminated with SIGFPE at -O2.