https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90007
--- Comment #14 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- (In reply to Segher Boessenkool from comment #13) > Does that work? You cannot put all hard registers in memory I think? > Or do we require that and it is just not documented? It depends on insns. For example, if insn only requires memory operand but we have hard register instead, we spill it into memory. Generally speaking I think we can "invent" an architecture where such feature may result in problems. But the same possible for other aspects of LRA/reload work. In practice, I believe it is not a problem for real architectures.