x86: Use asm goto to implement better modify_and_test() functions