This is the mail archive of the gcc-patches@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] |
else ! fprintf (file, "%d", REGNO (XEXP (x, 0))); return;
case 'q': --- 8960,8966 ---- || REGNO (XEXP (x, 0)) >= 32) output_operand_lossage ("invalid %%P value"); else ! fprintf (file, "%s", reg_names[REGNO (XEXP (x, 0))]);
Uhh, what in the world is this? I thought all assemblers were supposed to support plain reg numbers.
No, the Darwin assembler requires register names to be used where a field represents a register, and constants to be used for constant fields. In particular, the load and store instructions where you can have either Rn (n!=0) or constant 0 must say what they mean. Having used this assembler for a while now, I think it's an excellent idea; several register-allocation bugs have been caught at assembly time as a result.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |