aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2011-04-14 11:11:33 +0000
committerAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2011-04-14 11:11:33 +0000
commit902cc293a01e649f45869d567e957cc303e44b96 (patch)
tree84ae13cbc8b8ffa3e56f6e4682d8f44ba6a7a872 /gas/testsuite
parentba770c9cff8f08be74bf4b5028d060229086e9c4 (diff)
downloadgdb-902cc293a01e649f45869d567e957cc303e44b96.zip
gdb-902cc293a01e649f45869d567e957cc303e44b96.tar.gz
gdb-902cc293a01e649f45869d567e957cc303e44b96.tar.bz2
2011-04-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c (s390_machine): New prototype. (md_pseudo_table): New pseudo-op .machine. (s390_opcode_hash): Initialize to NULL. (s390_parse_cpu): New function. (md_parse_option): Use s390_parse_cpu. (s390_setup_opcodes): New function. (md_begin): Use s390_setup_opcodes. (s390_machine): New hook handling the new .machine pseudo. * doc/c-s390.texi: Document the new pseudo op .machine. 2011-04-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gas/s390/zarch-machine.s: New testcase. * gas/s390/zarch-machine.d: New testcase output. * gas/s390/s390.exp: Execute the new testcase.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/s390/s390.exp1
-rw-r--r--gas/testsuite/gas/s390/zarch-machine.d12
-rw-r--r--gas/testsuite/gas/s390/zarch-machine.s8
4 files changed, 27 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 16abb00..d3492aa 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
+
+ * gas/s390/zarch-machine.s: New testcase.
+ * gas/s390/zarch-machine.d: New testcase output.
+ * gas/s390/s390.exp: Execute the new testcase.
+
2011-04-13 Nick Clifton <nickc@redhat.com>
* gas/v850/v850e1.s: Add a insn using reg+offset addressing.
diff --git a/gas/testsuite/gas/s390/s390.exp b/gas/testsuite/gas/s390/s390.exp
index ec9805d..dad828a 100644
--- a/gas/testsuite/gas/s390/s390.exp
+++ b/gas/testsuite/gas/s390/s390.exp
@@ -27,4 +27,5 @@ if [expr [istarget "s390-*-*"] || [istarget "s390x-*-*"]] then {
run_dump_test "zarch-z196" "{as -m64} {as -march=z196}"
run_dump_test "zarch-reloc" "{as -m64}"
run_dump_test "zarch-operands" "{as -m64} {as -march=z9-109}"
+ run_dump_test "zarch-machine" "{as -m64} {as -march=z900}"
}
diff --git a/gas/testsuite/gas/s390/zarch-machine.d b/gas/testsuite/gas/s390/zarch-machine.d
new file mode 100644
index 0000000..96a202d
--- /dev/null
+++ b/gas/testsuite/gas/s390/zarch-machine.d
@@ -0,0 +1,12 @@
+#name: s390x machine
+#objdump: -dr
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+.* <foo>:
+.*: e3 95 af ff 00 08 [ ]*ag %r9,4095\(%r5,%r10\)
+.*: eb d6 65 b3 01 6a [ ]*asi 5555\(%r6\),-42
+.*: e3 95 af ff 00 18 [ ]*agf %r9,4095\(%r5,%r10\)
+.*: 07 07 [ ]*nopr %r7
diff --git a/gas/testsuite/gas/s390/zarch-machine.s b/gas/testsuite/gas/s390/zarch-machine.s
new file mode 100644
index 0000000..f40a18c
--- /dev/null
+++ b/gas/testsuite/gas/s390/zarch-machine.s
@@ -0,0 +1,8 @@
+.text
+foo:
+ ag %r9,4095(%r5,%r10)
+.machine push
+.machine z10
+ asi 5555(%r6),-42
+.machine pop
+ agf %r9,4095(%r5,%r10)