本文整理汇总了Python中ut_helpers_asm.check_instruction函数的典型用法代码示例。如果您正苦于以下问题:Python check_instruction函数的具体用法?Python check_instruction怎么用?Python check_instruction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了check_instruction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_CLIPU
def test_CLIPU(self):
"""Test the CLIPU instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("CLIPU $1, 0x2", "f1011011")
示例2: test_SSUB
def test_SSUB(self):
"""Test the SSUB instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("SSUB $1, $2", "f121000a")
示例3: test_LHCPM0
def test_LHCPM0(self):
"""Test the LHCPM0 instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("LHCPM0 $C1, ($2+), 8", "f1255808")
示例4: test_SADDU
def test_SADDU(self):
"""Test the SADDU instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("SADDU $1, $2", "f1210009")
示例5: test_LMCPA
def test_LMCPA(self):
"""Test the LMCPA instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("LMCPA $C1, ($2+), 8", "f1257008")
示例6: test_UCI
def test_UCI(self):
"""Test the UCI instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("UCI $1, $2, 0x3", "f1220003")
示例7: test_DSP
def test_DSP(self):
"""Test the DSP instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("DSP $1, $2, 0x3", "f1200003")
示例8: test_MAXU
def test_MAXU(self):
"""Test the MAXU instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("MAXU $1, $2", "f1210007")
示例9: test_SWCPA
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")
示例10: test_SHCPA
def test_SHCPA(self):
"""Test the SHCPA instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("SHCPA $C1, ($2+), 6", "f1251006")
示例11: test_LWCPM1
def test_LWCPM1(self):
"""Test the LWCPM1 instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("LWCPM1 $C1, ($2+), 8", "f1256c08")
示例12: test_ABS
def test_ABS(self):
"""Test the ABS instruction"""
# No samples were found
assert(True)
# Manually generated instruction
check_instruction("ABS $1, $2", "f1210003")
示例13: test_LMCPM0
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")
示例14: test_SSARB
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")
示例15: test_CMOVC
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")