summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2013-05-01 01:04:44 +0000
committerChao-ying Fu <fu@mips.com>2013-05-01 01:04:44 +0000
commit8086ed6401a882dbd4169e4bcc0d08614088494e (patch)
tree245e53286b5f4011bf1c548adfb5395c3ce8c6f8
parentb8af23eb82d461a96aa348d05bc1a149d1237bc4 (diff)
downloadbinutils-redhat-8086ed6401a882dbd4169e4bcc0d08614088494e.tar.gz
2013-04-30 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
* gas/mips/ext-ill.s: New file. * gas/mips/ext-ill.l: New file. * gas/mips/mips.exp: Run new tests.
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/ext-ill.l6
-rw-r--r--gas/testsuite/gas/mips/ext-ill.s9
-rw-r--r--gas/testsuite/gas/mips/mips.exp2
4 files changed, 23 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index ed428596b5..ea5d8d3a8e 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-30 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
+
+ * gas/mips/ext-ill.s: New file.
+ * gas/mips/ext-ill.l: New file.
+ * gas/mips/mips.exp: Run new tests.
+
2013-04-29 Nick Clifton <nickc@redhat.com>
* gas/elf/dwarf2-3.d: Fix expected readelf output.
diff --git a/gas/testsuite/gas/mips/ext-ill.l b/gas/testsuite/gas/mips/ext-ill.l
new file mode 100644
index 0000000000..0f4ed354d8
--- /dev/null
+++ b/gas/testsuite/gas/mips/ext-ill.l
@@ -0,0 +1,6 @@
+.*: Assembler messages:
+.*:5: Error: Improper extract size \(0, position 1\)
+.*:6: Error: Improper extract size \(0, position 1\)
+.*:7: Error: Improper extract size \(2, position 31\)
+.*:8: Error: Improper extract size \(32, position 1\)
+.*:9: Error: Improper extract size \(0, position 33\)
diff --git a/gas/testsuite/gas/mips/ext-ill.s b/gas/testsuite/gas/mips/ext-ill.s
new file mode 100644
index 0000000000..e4ce35a1df
--- /dev/null
+++ b/gas/testsuite/gas/mips/ext-ill.s
@@ -0,0 +1,9 @@
+# source file to test illegal ext, dext, dextm, dextu instructions
+
+ .text
+text_label:
+ ext $2, $3, 1, 0
+ dext $2, $3, 1, 0
+ dextm $2, $3, 31, 2
+ dextm $2, $3, 1, 32
+ dextu $2, $3, 33, 0
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 145824ab57..c387ce55b7 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -1169,4 +1169,6 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "r5900"
run_dump_test "r5900-full"
if $elf { run_list_test "r5900-nollsc" "-mabi=o64 -march=r5900" }
+
+ run_list_test_arches "ext-ill" [mips_arch_list_matching mips64r2]
}