aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2011-09-08 19:03:17 +0000
committerDavid S. Miller <davem@redhat.com>2011-09-08 19:03:17 +0000
commit8dbb9eb3c6a29de5b64fadc558c7a15507d6be63 (patch)
tree3c9b34be172722c403bac69ade623792c7435463 /gas
parent9bf29d72d48ef0ad6966bcb23ab3fdc5cc3c22fa (diff)
downloadgdb-8dbb9eb3c6a29de5b64fadc558c7a15507d6be63.zip
gdb-8dbb9eb3c6a29de5b64fadc558c7a15507d6be63.tar.gz
gdb-8dbb9eb3c6a29de5b64fadc558c7a15507d6be63.tar.bz2
opcodes/
* sparc-opc.c (sparc_opcodes): Add entry for 'save simm13,regrs1,regrd' This has been reported as being accepted by the Sun assmebler. gas/testsuite/ * gas/sparc/save-args.[sd]: New test. * gas/sparc/sparc.exp: Run new test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog3
-rw-r--r--gas/testsuite/gas/sparc/save-args.d12
-rw-r--r--gas/testsuite/gas/sparc/save-args.s6
-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 90af146..fe34a0b 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -7,6 +7,9 @@
* gas/sparc/v8-movwr-imm.[sd]: New test.
* gas/sparc/sparc.exp: Run new tests.
+ * gas/sparc/save-args.[sd]: New test.
+ * gas/sparc/sparc.exp: Run new test.
+
2011-09-08 David S. Miller <davem@davemloft.net>
* gas/sparc/hpcvis3.s: Correct pdistn test.
diff --git a/gas/testsuite/gas/sparc/save-args.d b/gas/testsuite/gas/sparc/save-args.d
new file mode 100644
index 0000000..ab5b79f
--- /dev/null
+++ b/gas/testsuite/gas/sparc/save-args.d
@@ -0,0 +1,12 @@
+#as: -Av8
+#objdump: -dr
+#name: software traps
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+00000000 <foo>:
+ 0: 81 e0 00 00 save
+ 4: 9d e3 bf a0 save %sp, -96, %sp
+ 8: 9d e3 bf a0 save %sp, -96, %sp
diff --git a/gas/testsuite/gas/sparc/save-args.s b/gas/testsuite/gas/sparc/save-args.s
new file mode 100644
index 0000000..acaa311
--- /dev/null
+++ b/gas/testsuite/gas/sparc/save-args.s
@@ -0,0 +1,6 @@
+! Test several forms of save argument
+ .text
+foo:
+ save
+ save %sp, -96, %sp
+ save -96, %sp, %sp
diff --git a/gas/testsuite/gas/sparc/sparc.exp b/gas/testsuite/gas/sparc/sparc.exp
index f7f8f8f..faba8e4 100644
--- a/gas/testsuite/gas/sparc/sparc.exp
+++ b/gas/testsuite/gas/sparc/sparc.exp
@@ -53,6 +53,7 @@ if [istarget sparc*-*-*] {
run_dump_test "imm-plus-rreg"
run_dump_test "ticc-imm-reg"
run_dump_test "v8-movwr-imm"
+ run_dump_test "save-args"
run_dump_test "v9branch1"
run_dump_test "v9branch2"
run_dump_test "v9branch3"