> I found arm.md and the moveqi insns, but because of the different > addressing modes of strb and swpb, its not easy to make the change. > And there must be a compiler option for this, too. > > Could somebody please tell me how to implement this change?
Short answer is probably not. There are a couple of complications that spring to mind. The different addressing modes and the fact that swp clobbers a register are the most immediate ones. You'll need to modify at least the movqi insn patterns, memory constraints and the legitimate address stuff. I'm not sure about the clobber, that might need additional reload-related machinery. Paul