It's possible to get gcc to generate sequences that would trigger this: https://godbolt.org/z/rYKqPxn7b
Given that 64-bit immediate math also causes this though, compilers might generate it (I think this is a minor missed optimization by gcc though: it could have used add eax, 1 instead.