From 902cc293a01e649f45869d567e957cc303e44b96 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Thu, 14 Apr 2011 11:11:33 +0000 Subject: 2011-04-14 Andreas Krebbel * 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 * gas/s390/zarch-machine.s: New testcase. * gas/s390/zarch-machine.d: New testcase output. * gas/s390/s390.exp: Execute the new testcase. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/s390/s390.exp | 1 + gas/testsuite/gas/s390/zarch-machine.d | 12 ++++++++++++ gas/testsuite/gas/s390/zarch-machine.s | 8 ++++++++ 4 files changed, 27 insertions(+) create mode 100644 gas/testsuite/gas/s390/zarch-machine.d create mode 100644 gas/testsuite/gas/s390/zarch-machine.s (limited to 'gas/testsuite') 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 + + * 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 * 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: + +.* : +.*: 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) -- cgit v1.1