work around arm gcc's rejection of r7 asm constraints in thumb mode