From 929e4d1a15b37f533a324b5786ea82177dc1d1d7 Mon Sep 17 00:00:00 2001 From: Martin Schwidefsky Date: Mon, 19 Feb 2007 17:46:11 +0000 Subject: [PATCH] 2007-02-19 Andreas Krebbel * s390-opc.c (INSTR_RRF_U0FR, MASK_RRF_U0FR): Removed. (INSTR_RRF_U0RF, MASK_RRF_U0RF): Added. * s390-opc.txt (cfxbr, cfdbr, cfebr, cgebr, cgdbr, cgxbr, cger, cgdr, cgxr, cfxr, cfdr, cfer): Instruction type set to INSTR_RRF_U0RF. 2007-02-19 Andreas Krebbel * gas/s390/esa-g5.d (cfxbr, cfebr, cfdbr): Exchanged floating point and fixed point operands. * gas/s390/esa-g5.s: Likewise. * gas/s390/zarch-z900.d (cfdr, cfer, cfxr, cgdbr, cgebr, cgxbr, cgdr, cger, cgxr): Likewise. * gas/s390/zarch-z900.s: Likewise. --- gas/testsuite/ChangeLog | 9 +++++++++ gas/testsuite/gas/s390/esa-g5.d | 6 +++--- gas/testsuite/gas/s390/esa-g5.s | 6 +++--- gas/testsuite/gas/s390/zarch-z900.d | 18 +++++++++--------- gas/testsuite/gas/s390/zarch-z900.s | 18 +++++++++--------- opcodes/ChangeLog | 7 +++++++ opcodes/s390-opc.c | 8 +++----- opcodes/s390-opc.txt | 24 ++++++++++++------------ 8 files changed, 55 insertions(+), 41 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 858b3853817..e69c151772b 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2007-02-19 Andreas Krebbel + + * gas/s390/esa-g5.d (cfxbr, cfebr, cfdbr): Exchanged floating + point and fixed point operands. + * gas/s390/esa-g5.s: Likewise. + * gas/s390/zarch-z900.d (cfdr, cfer, cfxr, cgdbr, cgebr, cgxbr, + cgdr, cger, cgxr): Likewise. + * gas/s390/zarch-z900.s: Likewise. + 2007-02-11 H.J. Lu PR gas/4027 diff --git a/gas/testsuite/gas/s390/esa-g5.d b/gas/testsuite/gas/s390/esa-g5.d index 0c38e419b82..7917ee9f7a2 100644 --- a/gas/testsuite/gas/s390/esa-g5.d +++ b/gas/testsuite/gas/s390/esa-g5.d @@ -104,9 +104,9 @@ Disassembly of section .text: .*: b3 b4 00 69 [ ]*cefr %r6,%f9 .*: 39 69 [ ]*cer %f6,%f9 .*: b2 1a 5f ff [ ]*cfc 4095\(%r5\) -.*: b3 99 50 69 [ ]*cfdbr %f6,5,%r9 -.*: b3 98 50 69 [ ]*cfebr %f6,5,%r9 -.*: b3 9a 50 69 [ ]*cfxbr %f6,5,%r9 +.*: b3 99 50 69 [ ]*cfdbr %r6,5,%f9 +.*: b3 98 50 69 [ ]*cfebr %r6,5,%f9 +.*: b3 9a 50 69 [ ]*cfxbr %r6,5,%f9 .*: 49 65 af ff [ ]*ch %r6,4095\(%r5,%r10\) .*: a7 6e 80 01 [ ]*chi %r6,-32767 .*: b2 41 00 69 [ ]*cksm %r6,%r9 diff --git a/gas/testsuite/gas/s390/esa-g5.s b/gas/testsuite/gas/s390/esa-g5.s index 314cbbb0964..d241c21fa4b 100644 --- a/gas/testsuite/gas/s390/esa-g5.s +++ b/gas/testsuite/gas/s390/esa-g5.s @@ -98,9 +98,9 @@ foo: cefr %r6,%f9 cer %f6,%f9 cfc 4095(%r5) - cfdbr %r6,5,%r9 - cfebr %r6,5,%r9 - cfxbr %r6,5,%r9 + cfdbr %r6,5,%f9 + cfebr %r6,5,%f9 + cfxbr %r6,5,%f9 ch %r6,4095(%r5,%r10) chi %r6,-32767 cksm %r6,%r9 diff --git a/gas/testsuite/gas/s390/zarch-z900.d b/gas/testsuite/gas/s390/zarch-z900.d index 0f701282acf..dc21077dedf 100644 --- a/gas/testsuite/gas/s390/zarch-z900.d +++ b/gas/testsuite/gas/s390/zarch-z900.d @@ -29,20 +29,20 @@ Disassembly of section .text: .*: eb 96 5f ff 00 3e [ ]*cdsg %r9,%r6,4095\(%r5\) .*: b3 a4 00 96 [ ]*cegbr %r9,%r6 .*: b3 c4 00 96 [ ]*cegr %r9,%r6 -.*: b3 b9 90 65 [ ]*cfdr %f6,9,%r5 -.*: b3 b8 90 65 [ ]*cfer %f6,9,%r5 -.*: b3 ba 90 65 [ ]*cfxr %f6,9,%r5 +.*: b3 b9 90 65 [ ]*cfdr %r6,9,%f5 +.*: b3 b8 90 65 [ ]*cfer %r6,9,%f5 +.*: b3 ba 90 65 [ ]*cfxr %r6,9,%f5 .*: e3 95 af ff 00 20 [ ]*cg %r9,4095\(%r5,%r10\) -.*: b3 a9 f0 65 [ ]*cgdbr %f6,15,%r5 -.*: b3 c9 f0 65 [ ]*cgdr %f6,15,%r5 -.*: b3 a8 f0 65 [ ]*cgebr %f6,15,%r5 -.*: b3 c8 f0 65 [ ]*cger %f6,15,%r5 +.*: b3 a9 f0 65 [ ]*cgdbr %r6,15,%f5 +.*: b3 c9 f0 65 [ ]*cgdr %r6,15,%f5 +.*: b3 a8 f0 65 [ ]*cgebr %r6,15,%f5 +.*: b3 c8 f0 65 [ ]*cger %r6,15,%f5 .*: e3 95 af ff 00 30 [ ]*cgf %r9,4095\(%r5,%r10\) .*: b9 30 00 96 [ ]*cgfr %r9,%r6 .*: a7 9f 80 01 [ ]*cghi %r9,-32767 .*: b9 20 00 96 [ ]*cgr %r9,%r6 -.*: b3 aa f0 65 [ ]*cgxbr %f6,15,%r5 -.*: b3 ca f0 65 [ ]*cgxr %f6,15,%r5 +.*: b3 aa f0 65 [ ]*cgxbr %r6,15,%f5 +.*: b3 ca f0 65 [ ]*cgxr %r6,15,%f5 .*: e3 95 af ff 00 21 [ ]*clg %r9,4095\(%r5,%r10\) .*: e3 95 af ff 00 31 [ ]*clgf %r9,4095\(%r5,%r10\) .*: b9 31 00 96 [ ]*clgfr %r9,%r6 diff --git a/gas/testsuite/gas/s390/zarch-z900.s b/gas/testsuite/gas/s390/zarch-z900.s index f5e737113c5..688033a32e9 100644 --- a/gas/testsuite/gas/s390/zarch-z900.s +++ b/gas/testsuite/gas/s390/zarch-z900.s @@ -23,20 +23,20 @@ foo: cdsg %r9,%r6,4095(%r5) cegbr %r9,%r6 cegr %r9,%r6 - cfdr %f6,9,%r5 - cfer %f6,9,%r5 - cfxr %f6,9,%r5 + cfdr %r6,9,%f5 + cfer %r6,9,%f5 + cfxr %r6,9,%f5 cg %r9,4095(%r5,%r10) - cgdbr %f6,15,%r5 - cgdr %f6,15,%r5 - cgebr %f6,15,%r5 - cger %f6,15,%r5 + cgdbr %r6,15,%f5 + cgdr %r6,15,%f5 + cgebr %r6,15,%f5 + cger %r6,15,%f5 cgf %r9,4095(%r5,%r10) cgfr %r9,%r6 cghi %r9,-32767 cgr %r9,%r6 - cgxbr %f6,15,%r5 - cgxr %f6,15,%r5 + cgxbr %r6,15,%f5 + cgxr %r6,15,%f5 clg %r9,4095(%r5,%r10) clgf %r9,4095(%r5,%r10) clgfr %r9,%r6 diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index ea4567e0919..7fbd372f056 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2007-02-19 Andreas Krebbel + + * s390-opc.c (INSTR_RRF_U0FR, MASK_RRF_U0FR): Removed. + (INSTR_RRF_U0RF, MASK_RRF_U0RF): Added. + * s390-opc.txt (cfxbr, cfdbr, cfebr, cgebr, cgdbr, cgxbr, cger, cgdr, + cgxr, cfxr, cfdr, cfer): Instruction type set to INSTR_RRF_U0RF. + 2007-02-19 Andreas Krebbel * s390-opc.txt ("efpc", "sfpc"): Set to RRE_RR_OPT instruction type. diff --git a/opcodes/s390-opc.c b/opcodes/s390-opc.c index 57b7f539d98..0da63bc72d6 100644 --- a/opcodes/s390-opc.c +++ b/opcodes/s390-opc.c @@ -212,9 +212,8 @@ const struct s390_operand s390_operands[] = #define INSTR_RRF_FUFF 4, { F_24,F_16,F_28,U4_20,0,0 } /* e.g. didbr */ #define INSTR_RRF_RURR 4, { R_24,R_28,R_16,U4_20,0,0 } /* e.g. .insn */ #define INSTR_RRF_R0RR 4, { R_24,R_28,R_16,0,0,0 } /* e.g. idte */ -#define INSTR_RRF_U0FF 4, { F_24,U4_16,F_28,0,0,0 } /* e.g. cfxbr */ -#define INSTR_RRF_U0FR 4, { F_24,U4_16,R_28,0,0,0 } /* e.g. cfebr */ -#define INSTR_RRF_U0FR 4, { F_24,U4_16,R_28,0,0,0 } /* e.g. cfxbr */ +#define INSTR_RRF_U0FF 4, { F_24,U4_16,F_28,0,0,0 } /* e.g. fixr */ +#define INSTR_RRF_U0RF 4, { R_24,U4_16,F_28,0,0,0 } /* e.g. cfebr */ #define INSTR_RRF_M0RR 4, { R_24,R_28,M_16,0,0,0 } /* e.g. sske */ #define INSTR_RR_0R 2, { R_12, 0,0,0,0,0 } /* e.g. br */ #define INSTR_RR_FF 2, { F_8,F_12,0,0,0,0 } /* e.g. adr */ @@ -287,8 +286,7 @@ const struct s390_operand s390_operands[] = #define MASK_RRF_RURR { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 } #define MASK_RRF_R0RR { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 } #define MASK_RRF_U0FF { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } -#define MASK_RRF_U0FR { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } -#define MASK_RRF_U0FR { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } +#define MASK_RRF_U0RF { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } #define MASK_RRF_M0RR { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } #define MASK_RR_0R { 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00 } #define MASK_RR_FF { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 } diff --git a/opcodes/s390-opc.txt b/opcodes/s390-opc.txt index 8a81d28f6fc..56773a936a5 100644 --- a/opcodes/s390-opc.txt +++ b/opcodes/s390-opc.txt @@ -344,9 +344,9 @@ ed0000000008 keb RXE_FRRD "compare and signal short bfp" g5 esa,zarch b396 cxfbr RRE_RF "convert from fixed 32 to extended bfp" g5 esa,zarch b395 cdfbr RRE_RF "convert from fixed 32 to long bfp" g5 esa,zarch b394 cefbr RRE_RF "convert from fixed 32 to short bfp" g5 esa,zarch -b39a cfxbr RRF_U0FR "convert to fixed extended bfp to 32" g5 esa,zarch -b399 cfdbr RRF_U0FR "convert to fixed long bfp to 32" g5 esa,zarch -b398 cfebr RRF_U0FR "convert to fixed short bfp to 32" g5 esa,zarch +b39a cfxbr RRF_U0RF "convert to fixed extended bfp to 32" g5 esa,zarch +b399 cfdbr RRF_U0RF "convert to fixed long bfp to 32" g5 esa,zarch +b398 cfebr RRF_U0RF "convert to fixed short bfp to 32" g5 esa,zarch b34d dxbr RRE_FF "divide extended bfp" g5 esa,zarch b31d ddbr RRE_FF "divide long bfp" g5 esa,zarch ed000000001d ddb RXE_FRRD "divide long bfp" g5 esa,zarch @@ -555,15 +555,15 @@ b91c msgfr RRE_RR "multiply single 64<32" z900 zarch b3a4 cegbr RRE_RR "convert from fixed 64 to short bfp" z900 zarch b3a5 cdgbr RRE_RR "convert from fixed 64 to long bfp" z900 zarch b3a6 cxgbr RRE_RR "convert from fixed 64 to extended bfp" z900 zarch -b3a8 cgebr RRF_U0FR "convert to fixed short bfd to 64" z900 zarch -b3a9 cgdbr RRF_U0FR "convert to fixed long bfp to 64" z900 zarch -b3aa cgxbr RRF_U0FR "convert to fixed extended bfp to 64" z900 zarch +b3a8 cgebr RRF_U0RF "convert to fixed short bfd to 64" z900 zarch +b3a9 cgdbr RRF_U0RF "convert to fixed long bfp to 64" z900 zarch +b3aa cgxbr RRF_U0RF "convert to fixed extended bfp to 64" z900 zarch b3c4 cegr RRE_RR "convert from fixed 64 to short hfp" z900 zarch b3c5 cdgr RRE_RR "convert from fixed 64 to long hfp" z900 zarch b3c6 cxgr RRE_RR "convert from fixed 64 to extended hfp" z900 zarch -b3c8 cger RRF_U0FR "convert to fixed short hfp to 64" z900 zarch -b3c9 cgdr RRF_U0FR "convert to fixed long hfp to 64" z900 zarch -b3ca cgxr RRF_U0FR "convert to fixed extended hfp to 64" z900 zarch +b3c8 cger RRF_U0RF "convert to fixed short hfp to 64" z900 zarch +b3c9 cgdr RRF_U0RF "convert to fixed long hfp to 64" z900 zarch +b3ca cgxr RRF_U0RF "convert to fixed extended hfp to 64" z900 zarch 010b tam E "test addressing mode" z900 esa,zarch 010c sam24 E "set addressing mode 24" z900 esa,zarch 010d sam31 E "set addressing mode 31" z900 esa,zarch @@ -631,9 +631,9 @@ b369 cxr RRE_FF "compare extended hfp" g5 esa,zarch b3b6 cxfr RRE_RF "convert from fixed 32 to extended hfp" g5 esa,zarch b3b5 cdfr RRE_RF "convert from fixed 32 to long hfp" g5 esa,zarch b3b4 cefr RRE_RF "convert from fixed 32 to short hfp" g5 esa,zarch -b3ba cfxr RRF_U0FR "convert to fixed extended hfp to 32" z900 zarch -b3b9 cfdr RRF_U0FR "convert to fixed long hfp to 32" z900 zarch -b3b8 cfer RRF_U0FR "convert to fixed short hfp to 32" z900 zarch +b3ba cfxr RRF_U0RF "convert to fixed extended hfp to 32" z900 zarch +b3b9 cfdr RRF_U0RF "convert to fixed long hfp to 32" z900 zarch +b3b8 cfer RRF_U0RF "convert to fixed short hfp to 32" z900 zarch b362 ltxr RRE_FF "load and test extended hfp" g5 esa,zarch b363 lcxr RRE_FF "load complement extended hfp" g5 esa,zarch b367 fixr RRF_U0FF "load fp integer extended hfp" g5 esa,zarch -- 2.30.2