diff options
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/s390/s390.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/s390/zarch-machine.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/s390/zarch-machine.s | 8 |
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) |