That makes sense. LLVM could probably do better here by using the memory operand version:
https://godbolt.org/z/jeqbaPsMz