aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-11-12 00:27:53 +0000
committerAlan Modra <amodra@gmail.com>2007-11-12 00:27:53 +0000
commit2ad068bef29ed040ce393685858531f8b7c96007 (patch)
tree4af82d3a7bb5adb49de9f2bfabd7f42b62302148 /gas/config/tc-ppc.c
parent4a1f2dd5109f8b3e049d541e4a65daae2edd5f71 (diff)
downloadgdb-2ad068bef29ed040ce393685858531f8b7c96007.zip
gdb-2ad068bef29ed040ce393685858531f8b7c96007.tar.gz
gdb-2ad068bef29ed040ce393685858531f8b7c96007.tar.bz2
* 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.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 1679c7e..a4c83d9 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['%'];