def test_LMCPA(self): """Test the LMCPA instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("LMCPA $C1, ($2+), 8", "f1257008")
def test_SWCPA(self): """Test the SWCPA instruction""" # Top instructions check_instruction("SWCPA $C10, ($5+), 48", "fa552030") # Manually generated instruction check_instruction("SWCPA $C1, ($2+), 4", "f1252004")
def test_LWCPM1(self): """Test the LWCPM1 instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("LWCPM1 $C1, ($2+), 8", "f1256c08")
def test_UCI(self): """Test the UCI instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("UCI $1, $2, 0x3", "f1220003")
def test_SHCPA(self): """Test the SHCPA instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("SHCPA $C1, ($2+), 6", "f1251006")
def test_DSP(self): """Test the DSP instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("DSP $1, $2, 0x3", "f1200003")
def test_CLIPU(self): """Test the CLIPU instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("CLIPU $1, 0x2", "f1011011")
def test_SSUB(self): """Test the SSUB instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("SSUB $1, $2", "f121000a")
def test_LHCPM0(self): """Test the LHCPM0 instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("LHCPM0 $C1, ($2+), 8", "f1255808")
def test_ABS(self): """Test the ABS instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("ABS $1, $2", "f1210003")
def test_CLIPU(self): """Test the CLIPU instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("CLIPU $1, 0x2", "f1011011")
def test_SSUB(self): """Test the SSUB instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("SSUB $1, $2", "f121000a")
def test_LHCPM0(self): """Test the LHCPM0 instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("LHCPM0 $C1, ($2+), 8", "f1255808")
def test_LWCPM1(self): """Test the LWCPM1 instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("LWCPM1 $C1, ($2+), 8", "f1256c08")
def test_MAXU(self): """Test the MAXU instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("MAXU $1, $2", "f1210007")
def test_MAXU(self): """Test the MAXU instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("MAXU $1, $2", "f1210007")
def test_UCI(self): """Test the UCI instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("UCI $1, $2, 0x3", "f1220003")
def test_SADDU(self): """Test the SADDU instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("SADDU $1, $2", "f1210009")
def test_SHCPA(self): """Test the SHCPA instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("SHCPA $C1, ($2+), 6", "f1251006")
def test_SADDU(self): """Test the SADDU instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("SADDU $1, $2", "f1210009")
def test_ABS(self): """Test the ABS instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("ABS $1, $2", "f1210003")
def test_DSP(self): """Test the DSP instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("DSP $1, $2, 0x3", "f1200003")
def test_LMCPA(self): """Test the LMCPA instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("LMCPA $C1, ($2+), 8", "f1257008")
def test_LMCPM0(self): """Test the LMCPM0 instruction""" # Top instructions check_instruction("LMCPM0 $C3, ($12+), 8", "f3c57808") check_instruction("LMCPM0 $C1, ($11+), -32", "f1b578e0") check_instruction("LMCPM0 $C3, ($TP+), 48", "f3d57830") check_instruction("LMCPM0 $C3, ($GP+), -96", "f3e578a0") check_instruction("LMCPM0 $C3, ($SP+), -40", "f3f578d8")
def test_EXTH(self): """Test the EXTH instruction""" # Top instructions check_instruction("EXTH $0", "102d") check_instruction("EXTH $11", "1b2d") check_instruction("EXTH $2", "122d") check_instruction("EXTH $6", "162d") check_instruction("EXTH $12", "1c2d")
def test_SSARB(self): """Test the SSARB instruction""" # Top instructions check_instruction("SSARB 0($8)", "108c") check_instruction("SSARB 3($GP)", "13ec") check_instruction("SSARB 0($3)", "103c") check_instruction("SSARB 0($TP)", "10dc") check_instruction("SSARB 3($0)", "130c")
def test_CMOVC(self): """Test the CMOVC instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("CMOVC $C0, $1", "f017f002") check_instruction("CMOVC $2, $C3", "f327f003")
def test_CMOVC(self): """Test the CMOVC instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("CMOVC $C0, $1", "f017f002") check_instruction("CMOVC $2, $C3", "f327f003")
def test_BCPEQ(self): """Test the BCPEQ instruction""" # Top instructions check_instruction("BCPEQ 0xE, 0xA504", "d8e45282") check_instruction("BCPEQ 0x4, 0xD5F4", "d8446afa") check_instruction("BCPEQ 0xC, 0xAADA", "d8c4556d") check_instruction("BCPEQ 0x7, 0xFFFF18F6", "d8748c7b") # Randomly chosen instructions check_instruction("BCPEQ 0x6, 0xFFFF18CA", "d8648c65")
def test_BCPEQ(self): """Test the BCPEQ instruction""" # Top instructions check_instruction("BCPEQ 0xE, 0xA504", "d8e45282") check_instruction("BCPEQ 0x4, 0xD5F4", "d8446afa") check_instruction("BCPEQ 0xC, 0xAADA", "d8c4556d") check_instruction("BCPEQ 0x7, 0xFFFF18F6", "d8748c7b") # Randomly choosen instructions check_instruction("BCPEQ 0x6, 0xFFFF18CA", "d8648c65")
def test_LMCPM1(self): """Test the LMCPM1 instruction""" # Top instructions check_instruction("LMCPM1 $C9, ($4+), 48", "f9457c30") check_instruction("LMCPM1 $C4, ($10+), 64", "f4a57c40") check_instruction("LMCPM1 $C4, ($TP+), -72", "f4d57cb8") check_instruction("LMCPM1 $C4, ($GP+), -32", "f4e57ce0")
def test_SWI(self): """Test the SWI instruction""" # Top instructions check_instruction("SWI 0x0", "7006") check_instruction("SWI 0x2", "7026") check_instruction("SWI 0x1", "7016") check_instruction("SWI 0x3", "7036")
def test_MADDR(self): """Test the MADDR instruction""" # Top instructions check_instruction("MADDR $12, $3", "fc313006") check_instruction("MADDR $10, $2", "fa213006") check_instruction("MADDR $6, $12", "f6c13006") check_instruction("MADDR $11, $10", "fba13006")
def test_CMOV(self): """Test the CMOV instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("CMOV $C0, $1", "f017f000") check_instruction("CMOV $1, $C0", "f017f001") check_instruction("CMOV $C28, $1", "fc17f008") check_instruction("CMOV $1, $C28", "fc17f009")
def test_CMOVH(self): """Test the CMOVH instruction""" # No samples were found assert(True) # Manually generated instruction check_instruction("CMOVH $C0, $1", "f017f100") check_instruction("CMOVH $2, $C3", "f327f101") check_instruction("CMOVH $C29, $12", "fdc7f108") check_instruction("CMOVH $SP, $C30", "fef7f109")
def test_CMOV(self): """Test the CMOV instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("CMOV $C0, $1", "f017f000") check_instruction("CMOV $1, $C0", "f017f001") check_instruction("CMOV $C28, $1", "fc17f008") check_instruction("CMOV $1, $C28", "fc17f009")
def test_CMOVH(self): """Test the CMOVH instruction""" # No samples were found assert (True) # Manually generated instruction check_instruction("CMOVH $C0, $1", "f017f100") check_instruction("CMOVH $2, $C3", "f327f101") check_instruction("CMOVH $C29, $12", "fdc7f108") check_instruction("CMOVH $SP, $C30", "fef7f109")
def test_SMCPA(self): """Test the SMCPA instruction""" # Top instructions check_instruction("SMCPA $C15, ($0+), -16", "ff0530f0") check_instruction("SMCPA $C15, ($0+), 32", "ff053020") # Manually generated instruction check_instruction("SMCPA $C1, ($2+), 8", "f1253008")
def test_SLT3(self): """Test the SLT3 instruction""" # Top instructions check_instruction("SLT3 $0, $2, 0x908", "c0220908") check_instruction("SLT3 $0, $1, 0x90F", "c012090f") check_instruction("SLT3 $0, $1, 0x1CE", "c01201ce") check_instruction("SLT3 $0, $12, 0x801", "c0c20801") check_instruction("SLT3 $0, $4, 0x800", "c0420800") # Randomly chosen instructions check_instruction("SLT3 $2, $4, 0x6A18", "c2426a18") check_instruction("SLT3 $2, $11, -31153", "c2b2864f") check_instruction("SLT3 $11, $12, 0x5BFA", "cbc25bfa") check_instruction("SLT3 $SP, $4, -30809", "cf4287a7") check_instruction("SLT3 $0, $12, 0x21", "c0c20021")
def test_SLT3(self): """Test the SLT3 instruction""" # Top instructions check_instruction("SLT3 $0, $2, 0x908", "c0220908") check_instruction("SLT3 $0, $1, 0x90F", "c012090f") check_instruction("SLT3 $0, $1, 0x1CE", "c01201ce") check_instruction("SLT3 $0, $12, 0x801", "c0c20801") check_instruction("SLT3 $0, $4, 0x800", "c0420800") # Randomly choosen instructions check_instruction("SLT3 $2, $4, 0x6A18", "c2426a18") check_instruction("SLT3 $2, $11, -31153", "c2b2864f") check_instruction("SLT3 $11, $12, 0x5BFA", "cbc25bfa") check_instruction("SLT3 $SP, $4, -30809", "cf4287a7") check_instruction("SLT3 $0, $12, 0x21", "c0c20021")
def test_ADD3(self): """Test the ADD3 instruction""" # Top instructions check_instruction("ADD3 $SP, $SP, -64", "cff0ffc0") check_instruction("ADD3 $SP, $SP, -44", "cff0ffd4") check_instruction("ADD3 $SP, $SP, -36", "cff0ffdc") check_instruction("ADD3 $12, $4, 0x48", "cc400048") check_instruction("ADD3 $SP, $SP, -68", "cff0ffbc") # Randomly choosen instructions check_instruction("ADD3 $12, $SP, 0x6", "ccf00006") check_instruction("ADD3 $12, $12, 0x3E4", "ccc003e4") check_instruction("ADD3 $7, $5, -31912", "c7508358") check_instruction("ADD3 $1, $8, 0x54", "c1800054") check_instruction("ADD3 $2, $8, 0x28", "c2800028")
def test_SLTU3(self): """Test the SLTU3 instruction""" # Top instructions check_instruction("SLTU3 $11, $8, 0x8813", "cb838813") check_instruction("SLTU3 $12, $11, 0x2711", "ccb32711") check_instruction("SLTU3 $0, $11, 0x941", "c0b30941") check_instruction("SLTU3 $0, $12, 0x941", "c0c30941") check_instruction("SLTU3 $12, $8, 0x1001", "cc831001") # Randomly choosen instructions check_instruction("SLTU3 $8, $12, 0x8BA9", "c8c38ba9") check_instruction("SLTU3 $12, $11, 0x1E", "ccb3001e") check_instruction("SLTU3 $6, $GP, 0x6C90", "c6e36c90") check_instruction("SLTU3 $TP, $7, 0x86C3", "cd7386c3") check_instruction("SLTU3 $12, $10, 0x1", "cca30001")
def test_MOVH(self): """Test the MOVH instruction""" # Top instructions check_instruction("MOVH $11, 0x8000", "cb218000") check_instruction("MOVH $11, 0x1000", "cb211000") check_instruction("MOVH $11, 0x100", "cb210100") check_instruction("MOVH $1, 0x101", "c1210101") check_instruction("MOVH $12, 0x81", "cc210081") # Randomly chosen instructions check_instruction("MOVH $4, 0xF4D5", "c421f4d5") check_instruction("MOVH $10, 0xFC00", "ca21fc00") check_instruction("MOVH $12, 0xC003", "cc21c003") check_instruction("MOVH $TP, 0x400", "cd210400") check_instruction("MOVH $7, 0x8000", "c7218000")
def test_LHU(self): """Test the LHU instruction""" # Top instructions check_instruction("LHU $3, 0x10($8)", "c38f0010") check_instruction("LHU $12, 0x10($1)", "cc1f0010") check_instruction("LHU $4, 0x2($8)", "c48f0002") check_instruction("LHU $4, 0x18($8)", "c48f0018") check_instruction("LHU $2, 0x10($8)", "c28f0010") # Randomly chosen instructions check_instruction("LHU $12, 0x94($8)", "cc8f0094") check_instruction("LHU $4, 0xE($6)", "c46f000e") check_instruction("LHU $11, 0x5B59($GP)", "cbef5b59") check_instruction("LHU $1, 0x601D($10)", "c1af601d") check_instruction("LHU $6, 0x74F6($11)", "c6bf74f6")
def test_LW(self): """Test the LW instruction""" # Top instructions check_instruction("LW $4, 0x1C($8)", "c48e001c") check_instruction("LW $12, 0x4($11)", "ccbe0004") check_instruction("LW $7, 0x18($3)", "c73e0018") check_instruction("LW $2, 0x8($8)", "c28e0008") check_instruction("LW $4, 0x14($8)", "c48e0014") # Randomly chosen instructions check_instruction("LW $12, 0x1D48($7)", "cc7e1d48") check_instruction("LW $8, 0x58($1)", "c81e0058") check_instruction("LW $12, 0xB0($7)", "cc7e00b0") check_instruction("LW $SP, 0x6653($SP)", "cffe6653") check_instruction("LW $12, -8($10)", "ccaefff8")
def test_LW(self): """Test the LW instruction""" # Top instructions check_instruction("LW $4, 0x1C($8)", "c48e001c") check_instruction("LW $12, 0x4($11)", "ccbe0004") check_instruction("LW $7, 0x18($3)", "c73e0018") check_instruction("LW $2, 0x8($8)", "c28e0008") check_instruction("LW $4, 0x14($8)", "c48e0014") # Randomly choosen instructions check_instruction("LW $12, 0x1D48($7)", "cc7e1d48") check_instruction("LW $8, 0x58($1)", "c81e0058") check_instruction("LW $12, 0xB0($7)", "cc7e00b0") check_instruction("LW $SP, 0x6653($SP)", "cffe6653") check_instruction("LW $12, -8($10)", "ccaefff8")
def test_MOVU(self): """Test the MOVU instruction""" # Top instructions check_instruction("MOVU $2, 0x0", "c2110000", multi=2) check_instruction("MOVU $2, 0x8002", "c2118002") check_instruction("MOVU $10, 0x8106", "ca118106") check_instruction("MOVU $11, 0x8105", "cb118105") check_instruction("MOVU $11, 0x8106", "cb118106") # Randomly chosen instructions check_instruction("MOVU $9, 0x8126", "c9118126") check_instruction("MOVU $7, 0xFF00", "c711ff00") check_instruction("MOVU $2, 0xE200", "c211e200") check_instruction("MOVU $10, 0xE102", "ca11e102") check_instruction("MOVU $11, 0xD6D8", "cb11d6d8")
def test_LHU(self): """Test the LHU instruction""" # Top instructions check_instruction("LHU $3, 0x10($8)", "c38f0010") check_instruction("LHU $12, 0x10($1)", "cc1f0010") check_instruction("LHU $4, 0x2($8)", "c48f0002") check_instruction("LHU $4, 0x18($8)", "c48f0018") check_instruction("LHU $2, 0x10($8)", "c28f0010") # Randomly choosen instructions check_instruction("LHU $12, 0x94($8)", "cc8f0094") check_instruction("LHU $4, 0xE($6)", "c46f000e") check_instruction("LHU $11, 0x5B59($GP)", "cbef5b59") check_instruction("LHU $1, 0x601D($10)", "c1af601d") check_instruction("LHU $6, 0x74F6($11)", "c6bf74f6")
def test_ADD3(self): """Test the ADD3 instruction""" # Top instructions check_instruction("ADD3 $SP, $SP, -64", "cff0ffc0") check_instruction("ADD3 $SP, $SP, -44", "cff0ffd4") check_instruction("ADD3 $SP, $SP, -36", "cff0ffdc") check_instruction("ADD3 $12, $4, 0x48", "cc400048") check_instruction("ADD3 $SP, $SP, -68", "cff0ffbc") # Randomly chosen instructions check_instruction("ADD3 $12, $SP, 0x6", "ccf00006") check_instruction("ADD3 $12, $12, 0x3E4", "ccc003e4") check_instruction("ADD3 $7, $5, -31912", "c7508358") check_instruction("ADD3 $1, $8, 0x54", "c1800054") check_instruction("ADD3 $2, $8, 0x28", "c2800028")
def test_MOVU(self): """Test the MOVU instruction""" # Top instructions check_instruction("MOVU $2, 0x0", "c2110000", multi=2) check_instruction("MOVU $2, 0x8002", "c2118002") check_instruction("MOVU $10, 0x8106", "ca118106") check_instruction("MOVU $11, 0x8105", "cb118105") check_instruction("MOVU $11, 0x8106", "cb118106") # Randomly choosen instructions check_instruction("MOVU $9, 0x8126", "c9118126") check_instruction("MOVU $7, 0xFF00", "c711ff00") check_instruction("MOVU $2, 0xE200", "c211e200") check_instruction("MOVU $10, 0xE102", "ca11e102") check_instruction("MOVU $11, 0xD6D8", "cb11d6d8")
def test_SLTU3(self): """Test the SLTU3 instruction""" # Top instructions check_instruction("SLTU3 $11, $8, 0x8813", "cb838813") check_instruction("SLTU3 $12, $11, 0x2711", "ccb32711") check_instruction("SLTU3 $0, $11, 0x941", "c0b30941") check_instruction("SLTU3 $0, $12, 0x941", "c0c30941") check_instruction("SLTU3 $12, $8, 0x1001", "cc831001") # Randomly chosen instructions check_instruction("SLTU3 $8, $12, 0x8BA9", "c8c38ba9") check_instruction("SLTU3 $12, $11, 0x1E", "ccb3001e") check_instruction("SLTU3 $6, $GP, 0x6C90", "c6e36c90") check_instruction("SLTU3 $TP, $7, 0x86C3", "cd7386c3") check_instruction("SLTU3 $12, $10, 0x1", "cca30001")
def test_MOVH(self): """Test the MOVH instruction""" # Top instructions check_instruction("MOVH $11, 0x8000", "cb218000") check_instruction("MOVH $11, 0x1000", "cb211000") check_instruction("MOVH $11, 0x100", "cb210100") check_instruction("MOVH $1, 0x101", "c1210101") check_instruction("MOVH $12, 0x81", "cc210081") # Randomly choosen instructions check_instruction("MOVH $4, 0xF4D5", "c421f4d5") check_instruction("MOVH $10, 0xFC00", "ca21fc00") check_instruction("MOVH $12, 0xC003", "cc21c003") check_instruction("MOVH $TP, 0x400", "cd210400") check_instruction("MOVH $7, 0x8000", "c7218000")