diff options
author | Andreas Krebbel <krebbel@linux.ibm.com> | 2021-02-15 14:20:00 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2021-02-15 14:32:17 +0100 |
commit | ba2b480f1037082d27da1afdfe0793c8aac9b1bd (patch) | |
tree | 56d25b61192d23f03d7721c54b6ff7b2f31af1f8 /gas/testsuite | |
parent | 8c6740616cd244e5763e974cb737affbe71db385 (diff) | |
download | binutils-gdb-ba2b480f1037082d27da1afdfe0793c8aac9b1bd.tar.gz |
IBM Z: Implement instruction set extensions
opcodes/
* s390-mkopc.c (main): Accept arch14 as cpu string.
* s390-opc.txt: Add new arch14 instructions.
include/
* opcode/s390.h (enum s390_opcode_cpu_val): Add
S390_OPCODE_ARCH14.
gas/
* config/tc-s390.c (s390_parse_cpu): New entry for arch14.
* doc/c-s390.texi: Document arch14 march option.
* testsuite/gas/s390/s390.exp: Run the arch14 related tests.
* testsuite/gas/s390/zarch-arch14.d: New test.
* testsuite/gas/s390/zarch-arch14.s: New test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/s390/s390.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/s390/zarch-arch14.d | 31 | ||||
-rw-r--r-- | gas/testsuite/gas/s390/zarch-arch14.s | 24 |
3 files changed, 56 insertions, 0 deletions
diff --git a/gas/testsuite/gas/s390/s390.exp b/gas/testsuite/gas/s390/s390.exp index f87a09a8633..d03555a7aef 100644 --- a/gas/testsuite/gas/s390/s390.exp +++ b/gas/testsuite/gas/s390/s390.exp @@ -31,6 +31,7 @@ if [expr [istarget "s390-*-*"] || [istarget "s390x-*-*"]] then { run_dump_test "zarch-z13" "{as -m64} {as -march=z13}" run_dump_test "zarch-arch12" "{as -m64} {as -march=arch12}" run_dump_test "zarch-arch13" "{as -m64} {as -march=arch13}" + run_dump_test "zarch-arch14" "{as -m64} {as -march=arch14}" 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-arch14.d b/gas/testsuite/gas/s390/zarch-arch14.d new file mode 100644 index 00000000000..97c4fd54719 --- /dev/null +++ b/gas/testsuite/gas/s390/zarch-arch14.d @@ -0,0 +1,31 @@ +#name: s390x opcode +#objdump: -dr + +.*: +file format .* + +Disassembly of section .text: + +.* <foo>: +.*: e6 f1 40 c0 d6 74 [ ]*vschp %v15,%v17,%v20,13,12 +.*: e6 f1 40 d0 26 74 [ ]*vschsp %v15,%v17,%v20,13 +.*: e6 f1 40 d0 36 74 [ ]*vschdp %v15,%v17,%v20,13 +.*: e6 f1 40 d0 46 74 [ ]*vschxp %v15,%v17,%v20,13 +.*: e6 f1 40 00 06 7c [ ]*vscshp %v15,%v17,%v20 +.*: e6 f1 40 d0 06 7d [ ]*vcsph %v15,%v17,%v20,13 +.*: e6 f1 00 d0 04 51 [ ]*vclzdp %v15,%v17,13 +.*: e6 f1 40 cf d6 70 [ ]*vpkzr %v15,%v17,%v20,253,12 +.*: e6 f1 40 cf d6 72 [ ]*vsrpr %v15,%v17,%v20,253,12 +.*: e6 f1 00 d0 04 54 [ ]*vupkzh %v15,%v17,13 +.*: e6 f1 00 d0 04 5c [ ]*vupkzl %v15,%v17,13 +.*: b9 3b 00 00 [ ]*nnpa +.*: e6 f1 00 0c d4 56 [ ]*vclfnh %v15,%v17,13,12 +.*: e6 f1 00 0c d4 5e [ ]*vclfnl %v15,%v17,13,12 +.*: e6 f1 40 0c d6 75 [ ]*vcrnf %v15,%v17,%v20,13,12 +.*: e6 f1 00 0c d4 5d [ ]*vcfn %v15,%v17,13,12 +.*: e6 f1 00 0c d4 55 [ ]*vcnf %v15,%v17,13,12 +.*: b9 8b 90 6b [ ]*rdp %r6,%r9,%r11 +.*: b9 8b 9d 6b [ ]*rdp %r6,%r9,%r11,13 +.*: eb fd 68 f0 fd 71 [ ]*lpswey -10000\(%r6\),253 +.*: b2 00 6f a0 [ ]*lbear 4000\(%r6\) +.*: b2 01 6f a0 [ ]*stbear 4000\(%r6\) +.*: 07 07 [ ]*nopr %r7 diff --git a/gas/testsuite/gas/s390/zarch-arch14.s b/gas/testsuite/gas/s390/zarch-arch14.s new file mode 100644 index 00000000000..830382f0ac5 --- /dev/null +++ b/gas/testsuite/gas/s390/zarch-arch14.s @@ -0,0 +1,24 @@ +.text +foo: + vschp %v15,%v17,%v20,13,12 + vschsp %v15,%v17,%v20,13 + vschdp %v15,%v17,%v20,13 + vschxp %v15,%v17,%v20,13 + vscshp %v15,%v17,%v20 + vcsph %v15,%v17,%v20,13 + vclzdp %v15,%v17,13 + vpkzr %v15,%v17,%v20,253,12 + vsrpr %v15,%v17,%v20,253,12 + vupkzh %v15,%v17,13 + vupkzl %v15,%v17,13 + nnpa + vclfnh %v15,%v17,13,12 + vclfnl %v15,%v17,13,12 + vcrnf %v15,%v17,%v20,13,12 + vcfn %v15,%v17,13,12 + vcnf %v15,%v17,13,12 + rdp %r6,%r9,%r11 + rdp %r6,%r9,%r11,13 + lpswey -10000(%r6),253 + lbear 4000(%r6) + stbear 4000(%r6) |