aboutsummaryrefslogtreecommitdiff
path: root/gas
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
parent4a1f2dd5109f8b3e049d541e4a65daae2edd5f71 (diff)
downloadfsf-binutils-gdb-2ad068bef29ed040ce393685858531f8b7c96007.zip
fsf-binutils-gdb-2ad068bef29ed040ce393685858531f8b7c96007.tar.gz
fsf-binutils-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')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-ppc.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a54f9c7..4a133ab 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
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['%'];