Fix ORIS bug in the test suite.

This commit is contained in:
Maxim Poliakovski 2020-02-01 00:42:57 +01:00
parent a27d7436ad
commit cc7814a722
2 changed files with 8 additions and 8 deletions

View File

@ -142,7 +142,7 @@ def gen_ppc_opcode(opc_str, imm):
elif opc_str == "ORI":
return (0x18 << 26) + (3 << 21) + (3 << 16) + (imm & 0xFFFF)
elif opc_str == "ORIS":
return (0x18 << 26) + (3 << 21) + (3 << 16) + (imm & 0xFFFF)
return (0x19 << 26) + (3 << 21) + (3 << 16) + (imm & 0xFFFF)
def find_imm(line):

View File

@ -526,10 +526,10 @@ ORI,0x60630001,rD=0x00000001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORI,0x60631FFF,rD=0x00001FFF,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORI,0x60633FFF,rD=0x00003FFF,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORI,0x60637FFF,rD=0x00007FFF,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x60630000,rD=0x00000000,rA=0x00000000,XER=0x00000000,CR=0x00000000
ORIS,0x60630001,rD=0x00010000,rA=0x00000000,XER=0x00000000,CR=0x00000000
ORIS,0x60630000,rD=0x00000001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x60630001,rD=0x00010001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x60631FFF,rD=0x1FFF0001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x60633FFF,rD=0x3FFF0001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x60637FFF,rD=0x7FFF0001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x64630000,rD=0x00000000,rA=0x00000000,XER=0x00000000,CR=0x00000000
ORIS,0x64630001,rD=0x00010000,rA=0x00000000,XER=0x00000000,CR=0x00000000
ORIS,0x64630000,rD=0x00000001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x64630001,rD=0x00010001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x64631FFF,rD=0x1FFF0001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x64633FFF,rD=0x3FFF0001,rA=0x00000001,XER=0x00000000,CR=0x00000000
ORIS,0x64637FFF,rD=0x7FFF0001,rA=0x00000001,XER=0x00000000,CR=0x00000000

Can't render this file because it has a wrong number of fields in line 85.