What is the expected behavior? What is sensible from the point of the compiler will vary depending on compiler, CPU type, optimization level, the source code surrounding the undefined code,..., and the programmer having the expectation.
Please don't argue that undefined behavior do have a defined behavior.