aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2009-02-24 04:30:30 +0000
committerMark Mitchell <mark@codesourcery.com>2009-02-24 04:30:30 +0000
commit9420679091f2b8ff96f05f4c00ccb30008fb131a (patch)
treebabda51cb60f112b00fbf7a065f33176216c5d35 /gas/testsuite
parent44cf688354f13b101e4cf5d03a1ee0eb1c5e8c58 (diff)
downloadgdb-9420679091f2b8ff96f05f4c00ccb30008fb131a.zip
gdb-9420679091f2b8ff96f05f4c00ccb30008fb131a.tar.gz
gdb-9420679091f2b8ff96f05f4c00ccb30008fb131a.tar.bz2
* config/tc-arm.c (warn_deprecated_sp): New macro.
(do_t_mov_cmp): Permit R13 as the second argument to "cmp.n". * gas/arm/thumb2_bad_reg.s: Update to allow R13 as second argument for CMP. * gas/arm/thumb2_bad_reg.l: Adjust accordingly.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/arm/thumb2_bad_reg.l4
-rw-r--r--gas/testsuite/gas/arm/thumb2_bad_reg.s4
3 files changed, 14 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 99ea036..b1b23c2 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-23 Mark Mitchell <mark@codesourcery.com>
+
+ * gas/arm/thumb2_bad_reg.s: Update to allow R13 as second argument
+ for CMP.
+ * gas/arm/thumb2_bad_reg.l: Adjust accordingly.
+
2009-02-19 Peter Bergner <bergner@vnet.ibm.com>
* gas/ppc/e500mc.d ("lfdepx", "stfdepx"): Fix tests to expect a
diff --git a/gas/testsuite/gas/arm/thumb2_bad_reg.l b/gas/testsuite/gas/arm/thumb2_bad_reg.l
index 46b4924..f22df10 100644
--- a/gas/testsuite/gas/arm/thumb2_bad_reg.l
+++ b/gas/testsuite/gas/arm/thumb2_bad_reg.l
@@ -76,6 +76,10 @@
[^:]*:[0-9]+: Error: r15 not allowed here -- `cmn.w r0,r15'
[^:]*:[0-9]+: Error: r15 not allowed here -- `cmp.w r15,#1'
[^:]*:[0-9]+: Error: r15 not allowed here -- `cmp r15,r0'
+[^:]*:[0-9]+: Warning: use of r13 is deprecated
+[^:]*:[0-9]+: Error: r15 not allowed here -- `cmp r0,r15'
+[^:]*:[0-9]+: Warning: use of r13 is deprecated
+[^:]*:[0-9]+: Error: r15 not allowed here -- `cmp.n r0,r15'
[^:]*:[0-9]+: Error: r15 not allowed here -- `cmp.w r15,r0'
[^:]*:[0-9]+: Error: r13 not allowed here -- `cmp.w r0,r13'
[^:]*:[0-9]+: Error: r15 not allowed here -- `cmp.w r0,r15'
diff --git a/gas/testsuite/gas/arm/thumb2_bad_reg.s b/gas/testsuite/gas/arm/thumb2_bad_reg.s
index 77134c3..90c82e6 100644
--- a/gas/testsuite/gas/arm/thumb2_bad_reg.s
+++ b/gas/testsuite/gas/arm/thumb2_bad_reg.s
@@ -114,6 +114,10 @@ test:
@ CMP (register)
cmp r13, r0 @ OK
cmp r15, r0
+ cmp r0, r13 @ Deprecated
+ cmp r0, r15
+ cmp.n r0, r13 @ Deprecated
+ cmp.n r0, r15
cmp.w r13, r0 @ OK
cmp.w r15, r0
cmp.w r0, r13