Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Apparently a (uint32_t) shifted by 32 is license to become completely insane.

That's easy to explain. The optimizer replaced the instruction with an undef [1], which has no live range. So it printed the value of some random register, which happened to be 0, 0x5a788cb0, or 0x54049be8.

[1]: http://llvm.org/docs/LangRef.html#undefined-values



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: