aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
-rw-r--r--gas/testsuite/gas/mips/odd-float.d10
-rw-r--r--gas/testsuite/gas/mips/odd-float.s6
4 files changed, 22 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index f688114..b097e1c 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-04 David Daney <ddaney@avtrex.com>
+
+ * gas/mips/odd-float.d, gas/mips/odd-float.s: New test.
+ * gas/mips/mips.exp: Run it.
+
2007-10-04 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5109
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 92abf32..7291197 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -775,4 +775,5 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "noreorder"
run_dump_test "align"
+ run_dump_test "odd-float"
}
diff --git a/gas/testsuite/gas/mips/odd-float.d b/gas/testsuite/gas/mips/odd-float.d
new file mode 100644
index 0000000..24ac3ad
--- /dev/null
+++ b/gas/testsuite/gas/mips/odd-float.d
@@ -0,0 +1,10 @@
+#objdump: -dr --prefix-addresses
+#name: MIPS odd float
+#as: -32 -march=sb1 -EL --fatal-warnings
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+00 <[^>]*> lwxc1 \$f1,a0\(a1\)
+0+04 <[^>]*> swxc1 \$f3,a0\(a1\)
+ ...
diff --git a/gas/testsuite/gas/mips/odd-float.s b/gas/testsuite/gas/mips/odd-float.s
new file mode 100644
index 0000000..045c04d
--- /dev/null
+++ b/gas/testsuite/gas/mips/odd-float.s
@@ -0,0 +1,6 @@
+# Source file used to test operations on odd numbered floating point
+# registers.
+
+text_label:
+ lwxc1 $f1,$4($5)
+ swxc1 $f3,$4($5)