https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118953
--- Comment #2 from Yunbo Ni <yunboni at smail dot nju.edu.cn> --- (In reply to Sam James from comment #1) > I get '45' at -O2 and -O3 locally and on godbolt, but -O1 shows 0. Yes, you're right. I mistakenly wrote the result from the case before it was reduced. Sorry about that.