<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJy1Vk2P4ygQ_TXOpRTLxsYfBx-mk8loNCPtYffSpxUG7LBjmwhwOtu_fgsncZz0qKXVTEuoDNTj8ShCVWot_q2-OrBS9hachloCAyO5HBx-WiOtVXoIg2gbRJ8uNosu7TykTzQvArqFgFDgHRta9wPWx7N3GsNRGk8DMQ2jMEJgsXfuYIPkU0B22Frl9mMdct3joOuO18_6YPQ_krsQASCjJhYiigvslCnLRVamNc9iWuaUJzgmmSgljQJSnvf-i5lWOtwETkX2d5aux-HHoF-GdaeG8bRuh_GC2xvJBPRayM6jD9qq09n1dbCOdZ0UW2W8y-vSnHX4tePr-trXh2Z8fcVOrYbzwp0eBwGcDUIJ5iR82WxAncmYw1BcyEZrPKWqfRA4R6uyIlsIJLviFwkvZ19SZh9AGeLV_n7a_AMoP0bp5Zr-lB3-XqX4XRI3s7h-7JzyC5EoDJKnII36LH0PlZALDDvvwE4z7nQFzqd4b9Pp4ZfXh_-zuTkZ_BGB7TESIUcOJCI7FurR3dYU0ds18bzmBouvMKd6iQywtlACfaT8pvybXawjb2Xe5jhz91spTH4Hg7bBTMU13iLwPTMIxny1gTAMfY7BaMxo5udrCJItUN_l3ghvpDfN5FmTuzU9w2RBCqSCIL_MAzTa71P4ODVnQ56mdocC8AztRBvPrADfY59TZ9CCTHjUNTMCLLx8Yok8aLqe85g9gAHai5LkQYWa8HKy9VILudNSz9ssljdegCfY-LjdbdhqLEff45_g8dgkw4afWL4JDNyuLiAEqwFZXtaSm9zNBvn2UaxaABZuI91ohsVRZt9jaTxnGaN72Oj-oDpp4PPp0Gkjp2ryUAS1qHXnQm0w0jtfTZ6fv9GjTZ5fV6JKRJmUbMVGt9emet3LQeihteNqNF31_6qprzLWjtJih6YRSVb7irKszhNax6RgNM0ETRMpGl5I2eQyp-WqY7XsbIUvByM6yBeYKHx06Xb16wpURSLiWxLTKE7jMGKkydOM0iLlWSQYZh6JL6YLPY-P0cpUE2U9thadnbLO3pwM_7e0g5STYFTolOtk9WIwZsCx0AO-eZ9iMCMCq_VRAv49eUzFsJpUVpPE_wBfkp05>54023</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
wrong code at -O1 and above on x86_64-linux-gnu
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zhendongsu
</td>
</tr>
</table>
<pre>
It seems to be a recent regression.
```
[578] % clangtk -v
clang version 15.0.0 (https://github.com/llvm/llvm-project.git e0f1dd018e0f94a7d694bc615975c3a7d26d9e50)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /local/suz-local/opfuzz/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
[579] %
[579] % clangtk -O0 small.c; ./a.out
[580] % clangtk -O1 small.c
[581] % timeout -s 9 5 ./a.out
Killed
[582] %
[582] % cat small.c
int printf(const char *, ...);
int a, b = 5, c, d, e, f = -2;
int main() {
for (; f; f++) {
int g = 1;
L1:
for (; d;)
for (c = 0; c; c = a)
g++;
int i = e = b;
L2:
b = 0;
if (i < 5)
goto L1;
if (g && !e) {
printf("0");
goto L2;
}
b = i;
}
return 0;
}
```
>From Compiler Explorer: https://godbolt.org/z/YYK5vs3Yz
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o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