https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125084
--- Comment #5 from Haochen Jiang <haochen.jiang at intel dot com> --- You might also need to change the first imm == val to the same condition you used in the loop to help -m32 also solve the issue.
