From 507c7aedbd67c4498414554ce13286a8e90731ad Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 8 Oct 2022 13:23:03 +0100 Subject: [PATCH] add stq to CSV files and unit test to test_pysvp64dis.py --- openpower/isatables/LDSTRM-2P-2S.csv | 1 + openpower/isatables/minor_62.csv | 1 + src/openpower/sv/trans/test_pysvp64dis.py | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/openpower/isatables/LDSTRM-2P-2S.csv b/openpower/isatables/LDSTRM-2P-2S.csv index 6ffc3e13..27714d23 100644 --- a/openpower/isatables/LDSTRM-2P-2S.csv +++ b/openpower/isatables/LDSTRM-2P-2S.csv @@ -5,3 +5,4 @@ sth,LDST_IMM,,2P,EXTRA3,EN,s:RS,s:RA,0,0,RA_OR_ZERO,0,RS,0,0,0,0 stfs,LDST_IMM,,2P,EXTRA3,EN,s:FRS,s:RA,0,0,RA_OR_ZERO,0,FRS,0,0,0,0 stfd,LDST_IMM,,2P,EXTRA3,EN,s:FRS,s:RA,0,0,RA_OR_ZERO,0,FRS,0,0,0,0 std,LDST_IMM,,2P,EXTRA3,EN,s:RS,s:RA,0,0,RA_OR_ZERO,0,RS,0,0,0,0 +stq,LDST_IMM,,2P,EXTRA3,EN,s:RS,s:RA,0,0,RA_OR_ZERO,0,RS,0,0,0,0 diff --git a/openpower/isatables/minor_62.csv b/openpower/isatables/minor_62.csv index e5f5a02a..aceb5026 100644 --- a/openpower/isatables/minor_62.csv +++ b/openpower/isatables/minor_62.csv @@ -3,3 +3,4 @@ opcode,unit,internal op,in1,in2,in3,out,CR in,CR out,inv A,inv out,cry in,cry out,ldst len,BR,sgn ext,upd,rsrv,32b,sgn,rc,lk,sgl pipe,comment,form,CONDITIONS 0,LDST,OP_STORE,RA_OR_ZERO,CONST_DS,RS,NONE,NONE,NONE,0,0,ZERO,0,is8B,0,0,0,0,0,0,NONE,0,1,std,DS, 1,LDST,OP_STORE,RA_OR_ZERO,CONST_DS,RS,NONE,NONE,NONE,0,0,ZERO,0,is8B,0,0,1,0,0,0,NONE,0,1,stdu,DS, +2,LDST,OP_STORE,RA_OR_ZERO,CONST_DS,RS,NONE,NONE,NONE,0,0,ZERO,0,is8B,0,0,0,0,0,0,NONE,0,1,stq,DS, diff --git a/src/openpower/sv/trans/test_pysvp64dis.py b/src/openpower/sv/trans/test_pysvp64dis.py index 40a18cc1..8c39bf76 100644 --- a/src/openpower/sv/trans/test_pysvp64dis.py +++ b/src/openpower/sv/trans/test_pysvp64dis.py @@ -353,6 +353,15 @@ class SVSTATETestCase(unittest.TestCase): ] self._do_tst(expected) + def test_25_stq(self): + expected = [ + "stq 4,0(5)", + "stq 4,8(5)", + "stq 4,16(5)", + "sv.stq *4,16(*5)", + ] + self._do_tst(expected) + if __name__ == "__main__": unittest.main() -- 2.30.2