aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/cris/rd-bkw4.d51
-rw-r--r--gas/testsuite/gas/cris/rd-bkw4.s45
-rw-r--r--gas/testsuite/gas/cris/rd-bkw4v32.d54
4 files changed, 155 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 84aeee3..ff0ec32 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-10 Hans-Peter Nilsson <hp@axis.com>
+
+ * gas/cris/rd-bkw4.d, gas/cris/rd-bkw4v32.d, gas/cris/rd-bkw4.s:
+ New test.
+
2009-03-10 Alan Modra <amodra@bigpond.net.au>
* gas/ppc/altivec_and_spe.d (objdump): Add -Maltivec.
diff --git a/gas/testsuite/gas/cris/rd-bkw4.d b/gas/testsuite/gas/cris/rd-bkw4.d
new file mode 100644
index 0000000..73d56b0
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-bkw4.d
@@ -0,0 +1,51 @@
+#as: --underscore --em=criself
+#objdump: -dr
+
+.*: file format .*-cris
+
+Disassembly of section \.text:
+
+0+ <x>:
+ 0: ce4a .*
+ 2: cc4a .*
+ 4: ca4a .*
+ 6: c84a .*
+ 8: c64a .*
+ a: c44a .*
+ c: c24a .*
+ e: c04a .*
+ 10: c44a .*
+ 12: c24a .*
+ 14: c04a .*
+ 16: be4a .*
+ 18: b64a .*
+ 1a: b44a .*
+ 1c: b84a .*
+ 1e: b64a .*
+ 20: ae4a .*
+ 22: ac4a .*
+ 24: b04a .*
+ 26: ae4a .*
+ 28: a64a .*
+ 2a: a44a .*
+ 2c: a84a .*
+ 2e: a64a .*
+ 30: 9e4a .*
+ 32: 9c4a .*
+ 34: a04a .*
+ 36: 984a .*
+ 38: 9c4a .*
+ \.\.\.
+ 4ac6: 0000 bcc \.\+2
+ 4ac8: 0ae0 ba 4ad4 <x\+0x4ad4>
+ 4aca: 0f05 nop
+ 4acc: 0f05 nop
+ 4ace: ffed 4035 ba 8012 <x\+0x8012>
+ 4ad2: 0f05 nop
+ 4ad4: 6f9e 0000 0000 move\.d 0 <x>,r9
+ 4ad6: R_CRIS_32 x336
+ 4ada: 3fbd 0000 0000 jsr 0 <x>
+ 4adc: R_CRIS_32 y
+ \.\.\.
+ 8010: 0000 bcc \.\+2
+ 8012: 0f05 nop
diff --git a/gas/testsuite/gas/cris/rd-bkw4.s b/gas/testsuite/gas/cris/rd-bkw4.s
new file mode 100644
index 0000000..74220df
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-bkw4.s
@@ -0,0 +1,45 @@
+ .text
+ .align 1
+ .global x
+ .type x,@function
+x:
+ .word .L1820-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L2617-.
+ .word .L2617-.
+ .word .L2617-.
+ .word .L2617-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L2617-.
+ .word .L2617-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L2617-.
+ .word .L2617-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L2617-.
+ .word .L2617-.
+ .word .L1820-.
+ .word .L1820-.
+ .word .L2617-.
+ .word .L1820-.
+ .word .L2617-.
+
+ .fill 19086
+.L2617:
+ move.d x336,$r9
+ jsr y
+
+ .fill 13618
+.L1820:
+ nop
+ .size x,.-x
+ .align 1
diff --git a/gas/testsuite/gas/cris/rd-bkw4v32.d b/gas/testsuite/gas/cris/rd-bkw4v32.d
new file mode 100644
index 0000000..210746c
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-bkw4v32.d
@@ -0,0 +1,54 @@
+#as: --underscore --em=criself --march=v32
+#source: rd-bkw4.s
+#objdump: -dr
+
+.*: file format .*-cris
+
+Disassembly of section \.text:
+
+0+ <x>:
+ 0: ce4a .*
+ 2: cc4a .*
+ 4: ca4a .*
+ 6: c84a .*
+ 8: c64a .*
+ a: c44a .*
+ c: c24a .*
+ e: c04a .*
+ 10: c64a .*
+ 12: c44a .*
+ 14: c24a .*
+ 16: c04a .*
+ 18: b64a .*
+ 1a: b44a .*
+ 1c: ba4a .*
+ 1e: b84a .*
+ 20: ae4a .*
+ 22: ac4a .*
+ 24: b24a .*
+ 26: b04a .*
+ 28: a64a .*
+ 2a: a44a .*
+ 2c: aa4a .*
+ 2e: a84a .*
+ 30: 9e4a .*
+ 32: 9c4a .*
+ 34: a24a .*
+ 36: 984a .*
+ 38: 9e4a .*
+ \.\.\.
+ 4ac6: 0000 bcc \.
+ 4ac8: 0ee0 ba 4ad6 <x\+0x4ad6>
+ 4aca: b005 nop
+ 4acc: b005 nop
+ 4ace: ffed 4635 ba 8014 <x\+0x8014>
+ 4ad2: b005 nop
+ 4ad4: 0000 bcc \.
+ 4ad6: 6f9e 0000 0000 move.d 0 <x>,r9
+ 4ad8: R_CRIS_32 x336
+ 4adc: bfbd 0000 0000 jsr 0 <x>
+ 4ade: R_CRIS_32 y
+ \.\.\.
+ 8012: 0000 bcc \.
+ 8014: b005 nop
+ \.\.\.