[Bug middle-end/112344] [14 Regression] Wrong code at -O2 on x86_64-pc-linux-gnu
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 2 06:42:14 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112344
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Corrected testcase:
```
int printf(const char *, ...);
void a() {
long b = 2036854775807;
char c = 3;
short d;
int e = -2147483648, f = 0;
for (; f < 7; f++)
while (e < 20) {
e += 2;
d = c -= b;
}
printf("%d\n", d);
}
int main() { a(); }
```
More information about the Gcc-bugs
mailing list