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] |
On Tue, May 04, 2004 at 02:16:53PM -0700, Stan Shebs wrote:
I presume you're also parsing the asm opcode to know what register class is needed at a particular point?
Well, no - so far the type of the variable has been sufficient to pick a good register class.
Oh, really?
int x, y; asm { addi x, y, 3 };
In this case Y must be class 'b', not class 'r'. Unless you're going to just use 'b' all the time for integer types [...]
Exactamundo. :-) Sure some code could be slower because I always use 'b' instead of choosing on a per-instruction-and-operand basis, but I think it would take a pretty contrived example to get a measurable speed hit.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |