aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2009-09-03 16:32:42 +0000
committerJie Zhang <jie.zhang@analog.com>2009-09-03 16:32:42 +0000
commitbd03da308991692d9e3f7c60135f811f11f65e49 (patch)
treeb43e581656310475e915d2ff4a8188678fe22143 /gas/testsuite
parentc958a8a8fb341605fa49cb30d62e98f1b833f542 (diff)
downloadgdb-bd03da308991692d9e3f7c60135f811f11f65e49.zip
gdb-bd03da308991692d9e3f7c60135f811f11f65e49.tar.gz
gdb-bd03da308991692d9e3f7c60135f811f11f65e49.tar.bz2
* config/tc-bfin.c (md_assemble): Bump line counters if there is
EOL in the instruction. testsuite/ * gas/bfin/line_number.l, gas/bfin/line_number.s: New test. * gas/bfin/bfin.exp: Add the new test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/bfin/bfin.exp1
-rw-r--r--gas/testsuite/gas/bfin/line_number.l3
-rw-r--r--gas/testsuite/gas/bfin/line_number.s4
4 files changed, 13 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 0c8b3e4..90b5515 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
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.
+
+2009-09-03 Jie Zhang <jie.zhang@analog.com>
+
* gas/bfin/expected_move_errors.s,
gas/bfin/expected_move_errors.l: Add "LC1 = I0;".
* gas/bfin/move.s, gas/bfin/move.d: Remove "CYCLES = A0.W".
diff --git a/gas/testsuite/gas/bfin/bfin.exp b/gas/testsuite/gas/bfin/bfin.exp
index 59eed65..7a70a4c 100644
--- a/gas/testsuite/gas/bfin/bfin.exp
+++ b/gas/testsuite/gas/bfin/bfin.exp
@@ -17,6 +17,7 @@ if [istarget bfin*-*-*] {
run_dump_test "flow"
run_dump_test "flow2"
run_list_test "invalid_arith_mode" ""
+ run_list_test "line_number" ""
run_dump_test "load"
run_dump_test "logical"
run_dump_test "logical2"
diff --git a/gas/testsuite/gas/bfin/line_number.l b/gas/testsuite/gas/bfin/line_number.l
new file mode 100644
index 0000000..964d809
--- /dev/null
+++ b/gas/testsuite/gas/bfin/line_number.l
@@ -0,0 +1,3 @@
+.*: Assembler messages:
+.*:4: Error: syntax error. Input text was illegal.
+.*:4: Error:
diff --git a/gas/testsuite/gas/bfin/line_number.s b/gas/testsuite/gas/bfin/line_number.s
new file mode 100644
index 0000000..a5e47d3
--- /dev/null
+++ b/gas/testsuite/gas/bfin/line_number.s
@@ -0,0 +1,4 @@
+ R1 = ROT R0 BY 0 ||
+ R3 = [SP+12] ||
+ nop;
+ ILLEGAL;