aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2009-09-03 15:36:02 +0000
committerJie Zhang <jie.zhang@analog.com>2009-09-03 15:36:02 +0000
commitd3a50e14198b40513ff5cebd62b8161bba9223fa (patch)
tree3630efb811c205daedd2bcb566d1eab49a81724e /gas/testsuite
parentfcbc2f09401545b9b5a8fc09d421a90377c6aa79 (diff)
downloadgdb-d3a50e14198b40513ff5cebd62b8161bba9223fa.zip
gdb-d3a50e14198b40513ff5cebd62b8161bba9223fa.tar.gz
gdb-d3a50e14198b40513ff5cebd62b8161bba9223fa.tar.bz2
* config/bfin-parse.y (asm_1): Add LOOP_BEGIN and LOOP_END.
* config/tc-bfin.c (bfin_start_line_hook): Remove. (bfin_loop_beginend): New. * config/tc-bfin.h (bfin_start_line_hook): Don't declare. (md_start_line_hook): Don't define. * config/bfin-aux.h (bfin_loop_beginend): Declare. testsuite/ * gas/bfin/loop.s, gas/bfin/loop.d: New test. * gas/bfin/loop2.s, gas/bfin/loop2.d: New test. * gas/bfin/loop3.s, gas/bfin/loop3.d: New test. * gas/bfin/bfin.exp: Add the new tests.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/bfin/bfin.exp3
-rw-r--r--gas/testsuite/gas/bfin/loop.d7
-rw-r--r--gas/testsuite/gas/bfin/loop.s5
-rw-r--r--gas/testsuite/gas/bfin/loop2.d7
-rw-r--r--gas/testsuite/gas/bfin/loop2.s5
-rw-r--r--gas/testsuite/gas/bfin/loop3.d7
-rw-r--r--gas/testsuite/gas/bfin/loop3.s5
8 files changed, 46 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index d639cee..f75cb12 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2009-09-03 Jie Zhang <jie.zhang@analog.com>
+
+ * gas/bfin/loop.s, gas/bfin/loop.d: New test.
+ * gas/bfin/loop2.s, gas/bfin/loop2.d: New test.
+ * gas/bfin/loop3.s, gas/bfin/loop3.d: New test.
+ * gas/bfin/bfin.exp: Add the new tests.
+
2009-09-02 Jie Zhang <jie.zhang@analog.com>
From Bernd Schmidt <bernd.schmidt@analog.com>
diff --git a/gas/testsuite/gas/bfin/bfin.exp b/gas/testsuite/gas/bfin/bfin.exp
index 58d33b5..59eed65 100644
--- a/gas/testsuite/gas/bfin/bfin.exp
+++ b/gas/testsuite/gas/bfin/bfin.exp
@@ -20,6 +20,9 @@ if [istarget bfin*-*-*] {
run_dump_test "load"
run_dump_test "logical"
run_dump_test "logical2"
+ run_dump_test "loop"
+ run_dump_test "loop2"
+ run_dump_test "loop3"
run_dump_test "misc"
run_dump_test "move"
run_dump_test "move2"
diff --git a/gas/testsuite/gas/bfin/loop.d b/gas/testsuite/gas/bfin/loop.d
new file mode 100644
index 0000000..2ecd459
--- /dev/null
+++ b/gas/testsuite/gas/bfin/loop.d
@@ -0,0 +1,7 @@
+#readelf: --relocs
+#name: loop
+
+Relocation section '\.rela\.text' .*:
+.*
+.* R_BFIN_GOT17M4 0+00 _foo \+ 0
+.* R_BFIN_PCREL24 0+00 _bar \+ 0
diff --git a/gas/testsuite/gas/bfin/loop.s b/gas/testsuite/gas/bfin/loop.s
new file mode 100644
index 0000000..43a7ed2
--- /dev/null
+++ b/gas/testsuite/gas/bfin/loop.s
@@ -0,0 +1,5 @@
+ LOOP bug LC0 = P0>>1;
+ LOOP_BEGIN bug;
+ R0 = [P3+_foo@GOT17M4];
+ LOOP_END bug;
+ call _bar;
diff --git a/gas/testsuite/gas/bfin/loop2.d b/gas/testsuite/gas/bfin/loop2.d
new file mode 100644
index 0000000..79c167b
--- /dev/null
+++ b/gas/testsuite/gas/bfin/loop2.d
@@ -0,0 +1,7 @@
+#readelf: --relocs
+#name: loop2
+
+Relocation section '\.rela\.text' .*:
+.*
+.* R_BFIN_GOT17M4 0+00 _foo \+ 0
+.* R_BFIN_PCREL24 0+00 _bar \+ 0
diff --git a/gas/testsuite/gas/bfin/loop2.s b/gas/testsuite/gas/bfin/loop2.s
new file mode 100644
index 0000000..e8c7600
--- /dev/null
+++ b/gas/testsuite/gas/bfin/loop2.s
@@ -0,0 +1,5 @@
+ LOOP .bug LC0 = P0>>1;
+ LOOP_BEGIN .bug;
+ R0 = [P3+_foo@GOT17M4];
+ LOOP_END .bug;
+ call _bar;
diff --git a/gas/testsuite/gas/bfin/loop3.d b/gas/testsuite/gas/bfin/loop3.d
new file mode 100644
index 0000000..0097d78
--- /dev/null
+++ b/gas/testsuite/gas/bfin/loop3.d
@@ -0,0 +1,7 @@
+#readelf: --relocs
+#name: loop3
+
+Relocation section '\.rela\.text' .*:
+.*
+.* R_BFIN_GOT17M4 0+00 _foo \+ 0
+.* R_BFIN_PCREL24 0+00 _bar \+ 0
diff --git a/gas/testsuite/gas/bfin/loop3.s b/gas/testsuite/gas/bfin/loop3.s
new file mode 100644
index 0000000..ef1a882
--- /dev/null
+++ b/gas/testsuite/gas/bfin/loop3.s
@@ -0,0 +1,5 @@
+ LOOP $bug LC0 = P0>>1;
+ LOOP_BEGIN $bug;
+ R0 = [P3+_foo@GOT17M4];
+ LOOP_END $bug;
+ call _bar;