This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using inline assembly with specific register indices


nkavv@physics.auth.gr writes:
> asm("cop2a %0, %1;", :: "r" (cp2rb(i)) : "r" (cp2rb(j)));

In addition to Daniel's reply: you wouldn't want to use "r" here.
That's for general registers only.

The MIPS port does in theory support coprocessors, but the functionality
isn't tested much (if at all).  The constraint for coprocessor 2 registers
is "C".

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]