How to implement memory-memory instructions?


Implementation of a load-store architecture should be quite straightforward as we are able to refer several backend. For now, I am planning to implement a backend on which instructions could take memory address as operand, for example, ‘cadd [a], [b], [c]’, where a, b, and c are memory address. I am wondering if there is an existing backend I could refer to to implement such memory-memory instructions. If not, is there any recommendation for this implementation? It is very appreciated if there is any help. Thank you.



x86 has instructions like this; see . -Eli