aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
-rw-r--r--gas/testsuite/gas/mips/mips16e-jrc.d14
-rw-r--r--gas/testsuite/gas/mips/mips16e-jrc.s6
4 files changed, 28 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 1f4f742..7260810 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2005-10-19 David Ung <davidu@mips.com>
+
+ * gas/mips/mips.exp: Run new test.
+ * gas/testsuite/gas/mips/mips16e-jrc.s: New test for converting
+ jalr/jr to the compact jalrc/jrc instructions.
+ * gas/testsuite/gas/mips/mips16e-jrc.d: New.
+
2005-10-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
* gas/s390/zarch-z9-109.s: Add tests for unnormalized hfp multiply
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 0eba51b..c787e4f 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -771,4 +771,5 @@ if { [istarget mips*-*-*] } then {
run_dump_test "mips16-dwarf2-n32"
}
}
+ if { !$no_mips16 } { run_dump_test "mips16e-jrc" }
}
diff --git a/gas/testsuite/gas/mips/mips16e-jrc.d b/gas/testsuite/gas/mips/mips16e-jrc.d
new file mode 100644
index 0000000..1a739b5
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips16e-jrc.d
@@ -0,0 +1,14 @@
+#objdump: -dr -mmips:isa32 -mmips:16
+#as: -march=mips32 -mips16
+#name: mips16e jalrc/jrc
+.*: file format .*
+Disassembly of section .text:
+00000000 <.text>:
+ 0: eac0 jalrc v0
+ 2: e8a0 jrc ra
+ 4: 6a01 li v0,1
+ 6: 6500 nop
+ 8: 6500 nop
+ a: 6500 nop
+ c: 6500 nop
+ e: 6500 nop
diff --git a/gas/testsuite/gas/mips/mips16e-jrc.s b/gas/testsuite/gas/mips/mips16e-jrc.s
new file mode 100644
index 0000000..02c8389
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips16e-jrc.s
@@ -0,0 +1,6 @@
+# Test the generation of jalrc/jrc opcodes
+ jalr $31,$2
+ jr $31
+ li $2,1
+
+ .p2align 4