Accoding to documentation for gas for ARM I should be able to give a register an alias. Their example:
name .req register name
This creates an alias for register name called name. For example:
foo .req r0
I get this message:
Error: bad instruction `foo .reg r0’
Any clues?? Thanks.
Your message mentions “.REQ” in one place, “.REG” in another - which are you actually trying to use? As far as I can tell, the alias command is supposed to be .REQ, even though .REG would seem to make more sense.
Thanks Jason, the Q instead of G did it. I wonder who thought up that little trap?