Issue 300 - Addition of z390 MGRK multiply two 64 bit regs resulting in 128 bit reg pair

5 views
Skip to first unread message

d...@higgins.net

unread,
Feb 20, 2022, 9:58:53 AM2/20/22
to z3...@googlegroups.com

All

 

I should have looked at this request before:

 

Here is the java code required in pz390.java:

 

case 0xEC: // "B9EC=MGRK,54,340", // B9EC rrfa MGRK R1,R2,R3

                   psw_check = false;

                     ins_setup_rrfa();

                             if ((mf1 & 1) != 0){ // issue 300 add MGRK, MSGRKC, MSRKC

                                      set_psw_check(psw_pic_spec);

                             }

                             big_int1 = new BigInteger(get_log_bytes(reg_byte, rf2, 8));                                                                                                                                                 

                             big_int2 = new BigInteger(get_log_bytes(reg_byte, rf3, 8));

                             big_int1 = big_int1

                                      .multiply(big_int2);

                             fp_bi_to_wreg(reg_byte,rf1,big_int1, 16);

                     break;

 

Attached is test program test300.mlc and execution trace.  This will be in v1.8.1.

 

Don Higgins

d...@higgins.net

www.don-higgins.net

 

test300.TRE
TEST300.MLC
Reply all
Reply to author
Forward
0 new messages