aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2001-06-19 07:33:21 +0000
committerPhil Blundell <philb@gnu.org>2001-06-19 07:33:21 +0000
commit2172d73b217f1f6f063a598c6752723ef3680821 (patch)
tree4a267cb69d3430fb2937e2cbd707da5610fdae2c /gas
parent45c500fa3edce8d3cc857de999c999937a8a576d (diff)
downloadgdb-2172d73b217f1f6f063a598c6752723ef3680821.zip
gdb-2172d73b217f1f6f063a598c6752723ef3680821.tar.gz
gdb-2172d73b217f1f6f063a598c6752723ef3680821.tar.bz2
2001-06-18 Philip Blundell <philb@gnu.org>
* config/tc-arm.c (do_msr): Remove restriction on usage of immediate operands.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arm.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b40ed5f..f7365a8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2001-06-18 Philip Blundell <philb@gnu.org>
+
+ * config/tc-arm.c (do_msr): Remove restriction on usage of
+ immediate operands.
+
2001-06-19 Alan Modra <amodra@bigpond.net.au>
* dwarf2dbg.c (dwarf2_finish): Output file info even when no
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 82ac65d..99aff8e 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -2289,12 +2289,17 @@ do_msr (str, flags)
return;
}
+#if 0 /* The first edition of the ARM architecture manual stated that
+ writing anything other than the flags with an immediate operation
+ had UNPREDICTABLE effects. This constraint was removed in the
+ second edition of the specification. */
if ((cpu_variant & ARM_EXT_V5) != ARM_EXT_V5
&& inst.instruction & ((PSR_c | PSR_x | PSR_s) << PSR_SHIFT))
{
inst.error = _("immediate value cannot be used to set this field");
return;
}
+#endif
flags |= INST_IMMEDIATE;