From 64025b4ec97fe8e932c367c6cb719e5fcf2448e8 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Mon, 2 Jan 2017 16:40:29 +0100 Subject: S/390: Add support for new cpu architecture - arch12. This adds support of new instructions to the S/390 specific parts. The important feature of the new instruction set is the support of single and extended precision floating point vector operations. Note: arch12 is NOT the official name of the new CPU. It just continues the series of archXX options supported as alternate names. The archXX terminology refers to the edition number of the Principle of Operations manual. The official CPU name will be added later while keeping support of the arch12 for backwards compatibility. No testsuite regressions. Committed to mainline. Bye, -Andreas- opcodes/ChangeLog: 2017-02-23 Andreas Krebbel * s390-mkopc.c (main): Accept arch12 as cpu string and vx2 as facility. * s390-opc.c: Add new operand description macros, new instruction types, instruction masks, and new .insn instruction types. * s390-opc.txt: Add new arch12 instructions. include/ChangeLog: 2017-02-23 Andreas Krebbel * opcode/s390.h (enum s390_opcode_cpu_val): New value S390_OPCODE_ARCH12. (S390_INSTR_FLAG_VX2): New macro definition. gas/ChangeLog: 2017-02-23 Andreas Krebbel * config/tc-s390.c (s390_parse_cpu): New entry for arch12. * doc/as.texinfo: Document arch12 as cpu type. * doc/c-s390.texi: Likewise. * testsuite/gas/s390/s390.exp: Run arch12 specific tests. * testsuite/gas/s390/zarch-arch12.d: New test. * testsuite/gas/s390/zarch-arch12.s: New test. * testsuite/gas/s390/zarch-z13.d: Rename some mnemonics in the output patterns. --- opcodes/s390-mkopc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'opcodes/s390-mkopc.c') diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c index 0d63db9..8e0b332 100644 --- a/opcodes/s390-mkopc.c +++ b/opcodes/s390-mkopc.c @@ -374,6 +374,8 @@ main (void) else if (strcmp (cpu_string, "z13") == 0 || strcmp (cpu_string, "arch11") == 0) min_cpu = S390_OPCODE_Z13; + else if (strcmp (cpu_string, "arch12") == 0) + min_cpu = S390_OPCODE_ARCH12; else { fprintf (stderr, "Couldn't parse cpu string %s\n", cpu_string); exit (1); @@ -417,6 +419,10 @@ main (void) && (str[2] == 0 || str[2] == ',')) { flag_bits |= S390_INSTR_FLAG_VX; str += 2; + } else if (strncmp (str, "vx2", 3) == 0 + && (str[3] == 0 || str[3] == ',')) { + flag_bits |= S390_INSTR_FLAG_VX2; + str += 3; } else { fprintf (stderr, "Couldn't parse flags string %s\n", flags_string); -- cgit v1.1