https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68860
--- Comment #13 from Dominik Vogt <vogt at linux dot vnet.ibm.com> --- By the way, I think the value of y should be tested *after* the asm statement in line 17 not before it in line 16. At higher optimization levels the assignement may not have happened yet when gdb reaches line 16. (And x should be tested in line 19 for the same reason).