aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-09-09 09:09:43 +0000
committerNick Clifton <nickc@redhat.com>2010-09-09 09:09:43 +0000
commit40f246e36c27a521661a926536e1cfceb18cd957 (patch)
tree581f4529d737f6663f0555f25416db98717e513d /gas/testsuite
parent95b75c0115a8dfef2afcefd3db9f191383b7376f (diff)
downloadgdb-40f246e36c27a521661a926536e1cfceb18cd957.zip
gdb-40f246e36c27a521661a926536e1cfceb18cd957.tar.gz
gdb-40f246e36c27a521661a926536e1cfceb18cd957.tar.bz2
* config/tc-arm.c (md_apply_fix): Check if widened add, sub are
flag-setting and handle accordingly. * gas/arm/addsw-bad.s: New file. * gas/arm/addsw-bad.l: New file. * gas/arm/addsw-bad.d: New file.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/arm/addsw-bad.d3
-rw-r--r--gas/testsuite/gas/arm/addsw-bad.l3
-rw-r--r--gas/testsuite/gas/arm/addsw-bad.s6
4 files changed, 18 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 73eee88..8d50f3c 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-09 Tejas Belagod <tejas.belagod@arm.com>
+
+ * gas/arm/addsw-bad.s: New file.
+ * gas/arm/addsw-bad.l: New file.
+ * gas/arm/addsw-bad.d: New file.
+
2010-09-03 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11974
diff --git a/gas/testsuite/gas/arm/addsw-bad.d b/gas/testsuite/gas/arm/addsw-bad.d
new file mode 100644
index 0000000..6865702
--- /dev/null
+++ b/gas/testsuite/gas/arm/addsw-bad.d
@@ -0,0 +1,3 @@
+#name: Invalid Immediate field for flag-setting add,sub
+#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd
+#error-output: addsw-bad.l
diff --git a/gas/testsuite/gas/arm/addsw-bad.l b/gas/testsuite/gas/arm/addsw-bad.l
new file mode 100644
index 0000000..fa62b95
--- /dev/null
+++ b/gas/testsuite/gas/arm/addsw-bad.l
@@ -0,0 +1,3 @@
+[^:]*: Assembler messages:
+[^:]*:5: Error: invalid constant \(496\) after fixup
+[^:]*:6: Error: invalid constant \(496\) after fixup
diff --git a/gas/testsuite/gas/arm/addsw-bad.s b/gas/testsuite/gas/arm/addsw-bad.s
new file mode 100644
index 0000000..69013be
--- /dev/null
+++ b/gas/testsuite/gas/arm/addsw-bad.s
@@ -0,0 +1,6 @@
+.text
+.thumb
+.cpu cortex-a8
+.syntax unified
+subs r4, r6, #0x496
+adds r4, r6, #0x496