aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2011-09-26 09:19:24 +0000
committerDavid S. Miller <davem@redhat.com>2011-09-26 09:19:24 +0000
commite91d10767a42a2267f52b69ddb5bca1fdc44f385 (patch)
treef6dd0484b54919909b2d86980d5178e59caf0d7b /gas
parent1781ecd0cb0589904e5fa32e0d1f3c7314ba3010 (diff)
downloadgdb-e91d10767a42a2267f52b69ddb5bca1fdc44f385.zip
gdb-e91d10767a42a2267f52b69ddb5bca1fdc44f385.tar.gz
gdb-e91d10767a42a2267f52b69ddb5bca1fdc44f385.tar.bz2
Add sparc integer multiply-add instructions.
opcodes/ * sparc-opc.c (sparc_opcodes): Add integer multiply-add instructions. gas/testsuite/ * gas/sparc/ima.d: New test. * gas/sparc/ima.s: New test source. * gas/sparc/sparc.exp: Run new test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/sparc/ima.d11
-rw-r--r--gas/testsuite/gas/sparc/ima.s4
-rw-r--r--gas/testsuite/gas/sparc/sparc.exp1
4 files changed, 22 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 03463ad..5def8f5 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2011-09-26 David S. Miller <davem@davemloft.net>
+
+ * gas/sparc/ima.d: New test.
+ * gas/sparc/ima.s: New test source.
+ * gas/sparc/sparc.exp: Run new test.
+
2011-09-21 David S. Miller <davem@davemloft.net>
* gas/sparc/hpcvis3.s: Update for fixed fchksum16 mnemonic.
diff --git a/gas/testsuite/gas/sparc/ima.d b/gas/testsuite/gas/sparc/ima.d
new file mode 100644
index 0000000..d499183
--- /dev/null
+++ b/gas/testsuite/gas/sparc/ima.d
@@ -0,0 +1,11 @@
+#as: -Av9v
+#objdump: -dr
+#name: sparc IMA
+
+.*: +file format .*sparc.*
+
+Disassembly of section .text:
+
+0+ <.text>:
+ 0: 91 ba 84 0c fpmaddx %f10, %f12, %f2, %f8
+ 4: a5 bb 8e 88 fpmaddxhi %f14, %f8, %f38, %f18
diff --git a/gas/testsuite/gas/sparc/ima.s b/gas/testsuite/gas/sparc/ima.s
new file mode 100644
index 0000000..f02578b
--- /dev/null
+++ b/gas/testsuite/gas/sparc/ima.s
@@ -0,0 +1,4 @@
+# Test IMA instructions
+ .text
+ fpmaddx %f10, %f12, %f2, %f8
+ fpmaddxhi %f14, %f8, %f38, %f18
diff --git a/gas/testsuite/gas/sparc/sparc.exp b/gas/testsuite/gas/sparc/sparc.exp
index faba8e4..65e84ce 100644
--- a/gas/testsuite/gas/sparc/sparc.exp
+++ b/gas/testsuite/gas/sparc/sparc.exp
@@ -61,6 +61,7 @@ if [istarget sparc*-*-*] {
run_dump_test "v9branch5"
run_dump_test "pc2210"
run_dump_test "hpcvis3"
+ run_dump_test "ima"
run_list_test "pr4587" ""
}