aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2009-09-03 16:50:39 +0000
committerJie Zhang <jie.zhang@analog.com>2009-09-03 16:50:39 +0000
commit118176876bb5ceef6f8d15413602107c157dd106 (patch)
tree1c2f3b27c03d0716c179b48291f3befbc864a3d3 /gas/testsuite
parentfca6a796b7fafc1254c61fb2bf36e1bd8893eef8 (diff)
downloadgdb-118176876bb5ceef6f8d15413602107c157dd106.zip
gdb-118176876bb5ceef6f8d15413602107c157dd106.tar.gz
gdb-118176876bb5ceef6f8d15413602107c157dd106.tar.bz2
* config/bfin-parse.y (gen_multi_instr_1): Check anomaly
05000074 only when both slot1 and slot2 are filled. testsuite/ * gas/bfin/parallel5.s: New test. * gas/bfin/error.exp: New test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/bfin/error.exp10
-rw-r--r--gas/testsuite/gas/bfin/parallel5.s4
3 files changed, 19 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 90b5515..1dcde07 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2009-09-03 Jie Zhang <jie.zhang@analog.com>
+ * gas/bfin/parallel5.s: New test.
+ * gas/bfin/error.exp: New test.
+
+2009-09-03 Jie Zhang <jie.zhang@analog.com>
+
* gas/bfin/line_number.l, gas/bfin/line_number.s: New test.
* gas/bfin/bfin.exp: Add the new test.
diff --git a/gas/testsuite/gas/bfin/error.exp b/gas/testsuite/gas/bfin/error.exp
new file mode 100644
index 0000000..c602f3d
--- /dev/null
+++ b/gas/testsuite/gas/bfin/error.exp
@@ -0,0 +1,10 @@
+# Test assembler warnings and errors.
+
+load_lib gas-dg.exp
+dg-init
+
+if [istarget bfin-*-*] {
+ dg-runtest "$srcdir/$subdir/parallel5.s" "" ""
+}
+
+dg-finish
diff --git a/gas/testsuite/gas/bfin/parallel5.s b/gas/testsuite/gas/bfin/parallel5.s
new file mode 100644
index 0000000..6156ecb
--- /dev/null
+++ b/gas/testsuite/gas/bfin/parallel5.s
@@ -0,0 +1,4 @@
+# { dg-do assemble { target bfin-*-* } }
+# { dg-options "--mcpu=bf537-0.2" }
+ .section .text;
+ R0 = W[P1++] (X) || R1.L = W[I1++];