* gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d,
authorHans-Peter Nilsson <hp@axis.com>
Wed, 12 Nov 2008 02:36:55 +0000 (02:36 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Wed, 12 Nov 2008 02:36:55 +0000 (02:36 +0000)
gas/cris/rd-bcnst2.s: New tests.

gas/testsuite/ChangeLog
gas/testsuite/gas/cris/rd-bcnst2-pic.d [new file with mode: 0644]
gas/testsuite/gas/cris/rd-bcnst2.d [new file with mode: 0644]
gas/testsuite/gas/cris/rd-bcnst2.s [new file with mode: 0644]

index dbe5cb8..04a9f1d 100644 (file)
@@ -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 (file)
index 0000000..c1e11a1
--- /dev/null
@@ -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 (file)
index 0000000..0192185
--- /dev/null
@@ -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 (file)
index 0000000..a48f18a
--- /dev/null
@@ -0,0 +1,2 @@
+ bmi x0x42
+ nop