From: Alan Modra Date: Mon, 12 Nov 2007 00:27:53 +0000 (+0000) Subject: * config/tc-ppc.c (md_assemble): If -mregnames, when parsing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ad068bef29ed040ce393685858531f8b7c96007;p=binutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a54f9c73fd7..4a133ab5fd1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2007-11-12 Tristan Gingold + + * 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 * config/tc-i386.c (match_template): Re-order suffix check. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 1679c7ecb16..a4c83d9033f 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -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['%'];