* config/tc-ppc.c (md_assemble): If -mregnames, when parsing

PPC_OPERAND_CR always parse as expression to allow register name
	followed by an expression.
This commit is contained in:
Alan Modra
2007-11-12 00:27:53 +00:00
parent 4a1f2dd510
commit 2ad068bef2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-11-12 Tristan Gingold <gingold@adacore.com>
* config/tc-ppc.c (md_assemble): If -mregnames, when parsing
PPC_OPERAND_CR always parse as expression to allow register name
followed by an expression.
2007-11-09 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Re-order suffix check.

View File

@ -2454,7 +2454,8 @@ md_assemble (char *str)
else
#endif /* TE_PE */
{
if (! register_name (&ex))
if ((reg_names_p && (operand->flags & PPC_OPERAND_CR) != 0)
|| !register_name (&ex))
{
char save_lex = lex_type['%'];