aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-11-12 02:36:55 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-11-12 02:36:55 +0000
commit00be4d3aff7d8b81f43b2bb0ad88e2997d2285e2 (patch)
treee2bed4d84ba238030cb95e8b6b610c5f533714b4
parentf6ce267ce1581be9a0af6a1f6c7ac98e8f45042f (diff)
downloadgdb-00be4d3aff7d8b81f43b2bb0ad88e2997d2285e2.zip
gdb-00be4d3aff7d8b81f43b2bb0ad88e2997d2285e2.tar.gz
gdb-00be4d3aff7d8b81f43b2bb0ad88e2997d2285e2.tar.bz2
* gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d,
gas/cris/rd-bcnst2.s: New tests.
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/cris/rd-bcnst2-pic.d17
-rw-r--r--gas/testsuite/gas/cris/rd-bcnst2.d17
-rw-r--r--gas/testsuite/gas/cris/rd-bcnst2.s2
4 files changed, 41 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index dbe5cb8..04a9f1d 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-12 Hans-Peter Nilsson <hp@axis.com>
+
+ * gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d,
+ gas/cris/rd-bcnst2.s: New tests.
+
2008-11-06 Adam Nemet <anemet@caviumnetworks.com>
* gas/mips/mips1-fp.s, testsuite/gas/mips/mips1-fp.d,
diff --git a/gas/testsuite/gas/cris/rd-bcnst2-pic.d b/gas/testsuite/gas/cris/rd-bcnst2-pic.d
new file mode 100644
index 0000000..c1e11a1
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-bcnst2-pic.d
@@ -0,0 +1,17 @@
+#objdump: -dr
+#as: --pic --underscore --em=criself
+#source: rd-bcnst2.s
+
+# Catches an error in the relaxation machinery.
+
+.*: file format elf32.*-cris
+
+Disassembly of section \.text:
+
+0+ <\.text>:
+[ ]+0:[ ]+0ae0[ ]+ba 0xc
+[ ]+2:[ ]+0f05[ ]+nop
+[ ]+4:[ ]+6ffd 0000 0000 3f0e[ ]+move \[pc=pc\+0x0\],p0
+[ ]+6:[ ]+R_CRIS_32_PCREL[ ]+x0x42
+[ ]+c:[ ]+f770[ ]+bmi 0x4
+[ ]+e:[ ]+0f05[ ]+nop
diff --git a/gas/testsuite/gas/cris/rd-bcnst2.d b/gas/testsuite/gas/cris/rd-bcnst2.d
new file mode 100644
index 0000000..0192185
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-bcnst2.d
@@ -0,0 +1,17 @@
+#objdump: -dr
+#as: --underscore --em=criself
+
+# Consistency check, corresponding to rd-bcnst2-pic.d.
+
+.*: file format .*-cris
+
+Disassembly of section \.text:
+
+0+ <\.text>:
+[ ]+0:[ ]+08e0[ ]+ba 0xa
+[ ]+2:[ ]+0f05[ ]+nop
+[ ]+4:[ ]+3f0d 0000 0000[ ]+jump 0x0
+[ ]+6:[ ]+R_CRIS_32[ ]+x0x42
+[ ]+a:[ ]+f970[ ]+bmi 0x4
+[ ]+c:[ ]+0f05[ ]+nop
+[ ]+\.\.\.
diff --git a/gas/testsuite/gas/cris/rd-bcnst2.s b/gas/testsuite/gas/cris/rd-bcnst2.s
new file mode 100644
index 0000000..a48f18a
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-bcnst2.s
@@ -0,0 +1,2 @@
+ bmi x0x42
+ nop